There is a newer version of the record available.

Published October 31, 2021 | Version 3.10.2
Software Open

brython-dev/brython: Brython-3.10.2

Description

The main visible feature in this version is the implementation of "suggestions" introduced in Python 3.10 : in case of a NameError, if the namespace has a name similar to the wrong name, the interpreter suggests "did you mean <similar name> ?".

Brython 3.10.1 on Netscape 5.0 (Windows)
>>> data = 0
>>> datz
Traceback (most recent call last):
  File <string>, line 1, in <module>
NameError: name 'datz' is not defined. Did you mean: 'data'?
>>>

The same applies to AttributeError:

Brython 3.10.1 on Netscape 5.0 (Windows)
>>> x = 12
>>> x.bitlength()
Traceback (most recent call last):
  File <string>, line 1, in <module>
AttributeError: 'int' object has no attribute 'bitlength'. Did you mean: 'bit_length'?
>>>

Another important change is a complete refactoring of comprehensions. The previous version was difficult to undestand / maintain and was not adapted to a future implemention of Python ast.

Files

brython-dev/brython-3.10.2.zip

Files (11.8 MB)

Name Size Download all
md5:3c5945309407afd00996432e553c9084
11.8 MB Preview Download

Additional details

Related works