Changes in Brython version 1.4-20131221-111525 ============================================== Site layout =========== - 2 interactive consoles : one with a navigation bar, the other without (to be included in pages from other sites in an IFRAME) - add Dirk Krause's demo using the Javascript library three.js Keywords ======== - support "yield from" Built-in names, functions, classes ================================== - add built-in name __debug__ - add attribute __code__ to functions - implement str.encode(), bytes.decode() - implement method __or__ for object and str - first implementation of str.format() Standard distribution ===================== - add attributes and methods to sys.py - add many modules from Python3.3 distribution, unmodified except : . add a fake _local class in _thread.py (to avoid a problem in circular imports from threading to _threading_local) . pickle is implemented as a clone of json - add Python modules to replace the built-in modules written in C in CPython3.3 (skeleton generated by scripts/make_skeleton.py) Brython distribution ==================== - functions related to type() and class construction moved from py_utils.js to new script py_type.js Features ======== - support of metaclasses - speed improvements for "for" loops DOM interface ============= - support requestAnimationFrame and cancelAnimationFrame Bug fixes ========= - bugs related to : consecutive string character ";" at the end of a line unary operator str.rpartition() syntax foo(x,) del - "import X,Y" failed if X imports Y - issue 172 : type('')==type('') returned False ! This fix lead to clean up the implementation of many built-in classes - issue 173 : function namespace Documentation =============