Dan,
It seems that the page hasn't been updated for some time regarding Brython:
- str.format(), generators have been supported for years now; generally, Brython is now compliant with the Python language specification (currently 3.9.x), with the few limitations related to the browser environment
- most of the stdlib is also supported, except for the modules written in C for which no pure-Python or Javascript equivalent is available (cf. this
compatibility table)
- the interface with the DOM is through the
browser module (the use of Brython-specific keywords such as "doc" and "window" has been removed #5 years ago)
- the interface with ECMAscript code is through
browser.window, not JSObject (again for a few years)
Could you update this information ?
- Pierre