edit: except FUD, can you provide some points on which brython is failling, please ?
x = 0
x += 1
print(0 < impure() <= 1)
PyPy, jython, ironpython etc all had/have incompatibilities as the language evolves and as they work out the quirks in their respective runtimes.
This isn't compatible with cpython (afaik, none of the other runtimes have ever been COMPLETELY compatible, but this is much further off), but hell, it's pretty awesome.
As an aside, I'd shoot anyone who did that ^^ without a pretty amazing explaination.
It is a cool project, whichever one of these python in javasript things is to become successful needs to aim for the same level of compatibility as say Jython or IronPython - yes it would take a long time, but this sort of thing is needed to be a useful implementation.
x = 1
x = 2
n = 0
while n < 10:
n += 1
g = f()
I'm not sure if the developer is one person or if they wrote the landing page as well, but let's assume it is that same person.
This isn't to say it's wrong to do in JS, just that the patterns in Python are different so you don't use this in practice.
So two line of code is long now?
and walked: "through the valley"' he's and feared: not: "evil"!
# he.and_walked("through the valley").and_feared(not("evil"))!
drop down:' criminal scum!
eat: breakfast' you!
kill: with pistol' maim: blunt object' opponent's check dead:
print person's name's last
print person's last' name # ;)
# print person.name.last
if my's cookies's jar's empty::
print "Cookie Monster, why is the Cookie jar empty?"
why: cookie jar's empty:' cookie monster
# why cookie monster, why? :)
why: cookie jar's empty:' cookie monster's why: "?"
It would be amazing if browsers added interpreters natively, then we could check for a native interpreter and fall back to loading a JS one like brython.