Brython

Latest version: v3.12.3

Safety actively analyzes 619345 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 12

3.12.3

The main feature in this release is the replacement of the Python parser by a program generated from the standard Python grammar with the CPython toolchain, adapted to generate Javascript code instead of C.

Austin Schick greatly contributed to this change by providing a first proof of concept in issue https://github.com/brython-dev/brython/issues/2354 and advice on the next steps of the implementation.

(This is the same as 3.12.2, with a fix for the blocking bug 2381)

3.12.2

The main feature in this release is the replacement of the Python parser by a program generated from the standard Python grammar with the CPython toolchain, adapted to generate Javascript code instead of C.

Austin Schick greatly contributed to this change by providing a first proof of concept in issue 2354 and advice on the next steps of the implementation.

3.12.1

Special thanks to Denis Migdal, who inspired and/or wrote the main changes in this release:
- speed up startup time by removing generation of Unicode-related tables
- significant improvement in performance of function argument parsing
- rewrite frames management

Apart from many bug fixes, other changes include:
- an improved implementation of PEP 695 – Type Parameter Syntax
- a partial rewriting of the alterative Brython implementation using a PEG parser with the standard Python grammar

3.12.0

The main new features in this release are:

1. the implementation of Python 3.12, notably:
- [PEP 701](https://peps.python.org/pep-0701/), f-strings in the grammar
- [PEP 695](https://peps.python.org/pep-0695/), type parameter syntax and the type statement
- Improved ‘Did you mean …’ suggestions for NameError and SyntaxError exceptions

2. the optional removal of the attribute `onload = brython(options)` of the `<body>` tag, replaced by setting page-level options with tag `<brython-options>` or per-script options as attributes of the `<script>` tag

3. a more consistent interface between Brython and Javascript

3.11.3

This is mostly a bug fix release, with bug fixes and additional features in the **`re`** module and a few performance improvements.

3.11.2

The main changes in this version are performance improvement in various fields:
- dictionary and set objects
- function arguments parsing
- attribute resolution

Brython can now use Javascript modules that use "export" with the function `import_modules(refs, callback)`. The API is experimental and may change in the future. The gallery includes a demo that use this feature with the Javascript library three.js.

A first version of a synthesizer demo is included in the gallery.

Page 1 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.