Published October 31, 2021
| Version 3.10.2
Software
Open
brython-dev/brython: Brython-3.10.2
Authors/Creators
- Pierre Quentel
- Billy Earney
- Jonathan Verner1
- kikocorreoso2
- Olemis Lang
- Evan Mallory
- Juan Carlos3
- André Roberge4
- DRo
- Adorjan White
- Amr Draz
- Quentin Santos
- Pokechu22
- Todd V. Rovito5
- caryoscelus
- coproc
- Christian Clauss6
- João Ventura
- Pi7
- Denis
- zed
- Kelly Costa
- Adam Griffiths8
- Alan Justino da Silva
- Austin Schick
- Joran van Apeldoorn
- Ram Rachum9
- PRIZ ;]
- Cédric Van Rompay10
- Aven
- 1. Charles University
- 2. Smile Co
- 3. Freelance Independent
- 4. Programming for fun :-)
- 5. N/A
- 6. Christian Clauss
- 7. KalariLab
- 8. Twisted Pair Development
- 9. Google
- 10. Misakey
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
- Is supplement to
- https://github.com/brython-dev/brython/tree/3.10.2 (URL)