Questions tagged [pypy]

PyPy is an implementation of the Python language. Do not confuse with PyPI, the package index. General Python questions should just be tagged with python.

PyPy is a fast, very compliant, self-hosting implementation of the Python language. PyPy started out being a Python interpreter written in the Python language itself. It is built using the language.

PyPy has several advantages and distinctive features, including:

  • Speed: thanks to its Just-in-Time (JIT) compiler, Python programs often run faster on PyPy.

  • Sandboxing: PyPy provides the ability to run untrusted code in a fully secure way.

  • Stackless: PyPy can be configured to run in stackless mode, providing micro-threads for massive concurrency.

Programmers interested in following PyPy's progress should check the Dev Site and the PyPy Status Blog. For background, see PyPy - Goals and Architecture Overview.

Releases and builds

At this time there are three PyPy release series with binaries for x86, ARM, and PPC, on Linux, Mac OS/X and Windows:

  • PyPy2.7 v5.6.0 (the Python2.7 compatible release)
  • PyPy3.3 v5.5.0 (the Python3.3 compatible release)
  • PyPy-STM v2.5.1 (Linux x86-64 only)

More informations about builds and versions on download page. There are also nightly builds available.

794 questions
0
votes
1 answer

Pypy sandbox - writing to /tmp

I am tring to run a Python code in PyPy sandbox. I need to get output from the script which doesn't interfere with the stdout. I've read a lot of sources and most of them mentions, that sanboxed script can write files to virtual /tmp. However I am…
yaqwsx
  • 569
  • 1
  • 5
  • 14
0
votes
1 answer

Cannot install pip with pypy: "Fatal RPython error: UnicodeDecodeError"

I'm using Windows 10 (64bit, zh-cn) with pypy (2.4 32bit based on python 3.2.5). When trying to install pip from pypy, > pypy get-pip.py after a short delay, the pypy.exe would stop response and then the following logging shows in the command…
Clive DM
  • 551
  • 4
  • 13
0
votes
1 answer

py2exe with Pypy

I have been developing a python script called script.py . I wish to compile it using py2exe. However, I wish to make sure the the final script.exe is optimized with the pypy JIT compiler and hence faster. P.S. I am new to both py2exe and pypy
Jack_The_Ripper
  • 673
  • 2
  • 6
  • 24
0
votes
0 answers

Using third-party modules in pypy

The initial problem was solved, but there are more ... __ I found this neat LTS tool online. Since it takes quite some time for training I'd like to speed things up. While searching for an approach I came across PyPy. Pypy is now setup and seems to…
entenbein
  • 25
  • 6
0
votes
2 answers

Python, PyPy and CFFI: what am I supposed to use?

I need to call C libraries with python, and after some consideration it seemed CFFI would be most adequate for the kind of job. By now, however, I am thouroughly confused if I'm using it right, because some things seem to work as intended only on…
UncleBob
  • 1,233
  • 3
  • 15
  • 33
0
votes
1 answer

django.db.utils.OperationalError: parser stack overflow

I have a re-usable django application which should support python2.7, python 3.x and pypy. I developed it in python 2.7 at the beginning and all of my tests are worked very well. I also made them worked in python3.3 too. But I have a problem with…
Ahmet DAL
  • 4,445
  • 9
  • 47
  • 71
0
votes
2 answers

Is there an RPython interpreter that runs under CPython?

I'm looking to port an existing interpreted language to RPython (the system underlying pypy), but I need to keep the ability to run the interpreted language in CPython. Is the RPython interpreter (rlib?) available as a CPython module? Alternatively,…
amwinter
  • 3,121
  • 2
  • 27
  • 25
0
votes
2 answers

Pickle Hangs with PyPy

My application hangs serializing a lists of dictionaries (CSV data) with pickle. Using the regular Python interpreter there are no issues. I am on Python 2.7, PyPy 2.6.0 for Win32. Here is the output when I Ctrl+C the application: Traceback (most…
Peter
  • 95
  • 1
  • 8
0
votes
1 answer

Options to make pypy run faster

I wrote a test code to see how pypy can optimize python code well and run faster. It is a non-in-place quick sort and supposed to run slow enough to make the difference. By simply replacing python with pypy, the result is actually slower from 16…
user3810155
0
votes
0 answers

memory profiling on pypy-2.3.1 run process?

My question is as title, we got memory leak on pypy process and process will down when out of memory, only on production site. Our simplified environment as below: OS: Centos 6 pypy-2.3.1 < Tried Solutions > objgraph is seems the only profiling…
Jim Horng
  • 1,587
  • 1
  • 13
  • 23
0
votes
1 answer

import error does not occurs only when required library is installed while repl is running

I'm trying to test cppyy module in pypy. cppyy requires reflex library, so I installed it. without it, an error occurs >>>> import cppyy Traceback (most recent call last): File "", line 1, in ImportError: missing…
12412316
  • 725
  • 7
  • 17
0
votes
1 answer

Issues with supervisord and monit with gunicorn+gevent+pypy

I have a small rest api built in python using Falcon Framework and it runs in a virtual environment with gunicorn + gevent and pypy 2.3 (I successfully installed the pip packages from gevent@pypy-hacks and gevent-on-pypy/pypycore). I wanted to add a…
Roland Pish
  • 815
  • 1
  • 9
  • 21
0
votes
1 answer

How to use mechanize in pypy?

I used mechanize in Python, but peppy said $ pypy Python 2.7.9 (9c4588d731b7fe0b08669bd732c2b676cb0a8233, Mar 31 2015, 07:55:22) [PyPy 2.5.1 with GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or…
0
votes
1 answer

Including my python library files in pypy sandbox

I have a project that allows users to their python files on an environment. For safety purpose, the environment is done by PyPy's sandbox. I also have some library code for users to use. However, I don't want them to see the source code. Is there a…
yonexer
  • 43
  • 1
  • 3
0
votes
1 answer

How to make a fake socket object from file or string in python?

I try to use pypy 2.5.1 replace python 2.7: I used mechanize 0.2.5 package for pypy: The problem is on /mechanize/_ulib2_fork.py line 70 try: socket._fileobject("fake socket", close=True) except TypeError: .... here I want to replace the…
user504909
  • 9,119
  • 12
  • 60
  • 109