News for hackers. Stuff that matters.
Re:PyPy.js: Python in the web browser by cutler on Wednesday August 22, 2018 @02:01PM (#17820554)

  File "<console>", line 2
    return f'{fname} {surname} is {age}.'
           ^
SyntaxError: invalid syntax

So this is a subset of Python or something like that?

Re:PyPy.js: Python in the web browser by Nicksil on Wednesday August 22, 2018 @02:04PM (#17820565)
I believe this feature was introduced in Python 3.6. This implementation may be 3.6 <

Edit: Just checked the site and see it uses PyPy which states -- on their site -- the python version is 3.5.3

Re:PyPy.js: Python in the web browser by Zopieux on Wednesday August 22, 2018 @06:19PM (#17822752)
Or you know, just import sys and print sys.version instead of reverse-engineering it from the syntactic features introduced over time.
Re:PyPy.js: Python in the web browser by zorkw4rg on Wednesday August 22, 2018 @02:55PM (#17821001)
I can't do:

a, *b = range(3)

which should be 3.5 i think.

Re:PyPy.js: Python in the web browser by Nicksil on Wednesday August 22, 2018 @03:00PM (#17821043)
Other comments in this thread point to the implementation likely being Python 2.x.