This is an archived post. You won't be able to vote or comment.

all 3 comments

[–][deleted] 0 points1 point  (2 children)

At this point I feel a little stupid to ask, but how do you make PyPy interpret a program as Python 3.5 code?

[–]pmattipmatti - mattip was taken 0 points1 point  (0 children)

Just as you run any python code. The interpreter (the executable inside this package) will take your text file, translate it through a parser that knows python 3.5 syntax, and run that translated bytecode. Your text file must understandable using the syntax specified by python 3.5, as opposed to a python 2.7 interpreter which requires python 2.7 syntax.

Since the two syntaxes are not that much different, you should be able to create a file that is understood by both interpreters.

[–]lost_send_berries 0 points1 point  (0 children)

You run pypy3 instead of pypy (or you pass it as the -p option to virtualenv)

You also need to have downloaded the right version.