Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 36 million developers.Sign up
This release is the same as 3.7.2, except for the critical bug reported in issue #1118 by Andy Lewis.
The main new feature in this release in a new implementation of the interface
to Web Workers, a standard web technology to run tasks in a separate thread to
keep the main program responsive. It is implemented in a new module,
browser.worker, which replaces the previous implementation in
The main change in this version is the support of asynchronous programming.
async for and
async while) and
To run asynchronous programs, a new module,
has been introduced as a replacement for the CPython
which can't be ported in a browser context (no blocking functions, no user-defined
This is the final version of Brython 3.7.0, the first one based on the
same version of CPython. It is mostly a bugfix version compared to the
previous release candidate (3.7.0rc2).
This is the second, and probably last, release candidate of Brython 3.7.0, the first one based on the same Python version.
This release is the first one that is based on the current Python version (3.7.0). The standard library has been upgraded to that of Python 3.7.0 and features such as dataclasses (PEP 557) and support for the typing module (PEP 560) have been added
Also included in this release:
- Underscores in Numeric Literals (PEP 515)
- support of the @ operator (PEP 465)
- variable annotations (PEP 526)
Coming a few days after version 3.6.0, this version is released because of a bug in the CPython package released on the Python Package Index.
It also includes the implementation of PEP 448 (Additional Unpacking Generalizations).
The main new feature in this release is the introduction of a cache for
precompiled versions of modules in the standard library. The cache is stored
in an indexedDB database attached to the browser. A module is compiled the
first time it is used, or when the Brython version changed. This feature
dramatically improves the loading time of applications that have to import
many modules from the standard library. The implementation is documented in
the wiki page How Brython works.
Other new features :
indexedDB cache can't be used for code run by exec(). As an alternative, a
browser.run_script(src[, name])runs the Python script with source
code src and optional name using this indexedDB cache.
a rework of asyncio has been made to be compatible with CPython, with specific
tests and an adaptation of the built-in test suite (by Jonathan Verner)
the previous release (3.5.1) had removed the decorator syntax for event
binding. In this version, the module browser now includes a function
bind(target, event)that can be used as a decorator for callback functions
open()on binary mode now raises an IOError (this is because browsers don't
want to set
responseTypeto "arraybuffer" in blocking mode)
clarify the disctinction between DOM attributes and properties.
Attributes are now managed by the attribute "attrs" of DOMNode instances, a
dict-like object ; properties are managed by the dotted syntax
The syntax for event binding introduced in version 3.3.5 was used in many examples and in the documentation as
which is not valid Python (cf issue #805). This now raises a
SyntaxError ; all the examples have been rewritten using the legacy syntax, without a decorator.
Another important change in this version is a major rewriting of the Python parser by Jonathan Verner : code cleaning and better modularity.