Skip to the content.

G+: From the Brython 2.0 announcement (http://lwn.net/Articles/587226/):"Brython (Browser Python) …

David Coles
From the Brython 2.0 announcement (http://lwn.net/Articles/587226/):

"Brython (Browser Python) is an implementation of Python 3 in the browser. Its goal is to be able to write client-side programs in Python instead of Javascript, with code inside tags <script type="text/python>...</script>. As opposed to solutions such as Pyjamas or Py2JS, the translation from Python to Javascript is done in the browser, it doesn't require a precompilation by a Python
program."

Brython


Shanika Kuruppu
Have you used Brython by any chance? If so what's it like? We often joke at work about using Brython on days when we really get sick of JavaScript. But no one has been brave enough yet.

David Coles
I have not. Just saw the announcement in LWN and figured it was worth spruking. Certainly tempted to give it a try though.

Tim Cuthbertson
I couldn't see much about how it differs from pyjamas. Is this just a new attempt? It sounds a bit smaller in scope (no `class`!).

Lack of inline function syntax is going to suck when dealing with async APIs, but perhaps you can get around it somewhat with iterators / generators.