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
2 answers

RPython ord() with non-ascii character

I'm making a virtual machine in RPython using PyPy. My problem is, that I am converting each character into the numerical representation. For example, converting the letter "a" provides this result, 97. And then I convert the 97 to hex, so I get:…
user3566150
  • 233
  • 1
  • 3
  • 10
0
votes
1 answer

PyPy 2.2.1 and SQLAlchemy/Storm

We are starting a project that uses PyPy 2.2.1 and we want to start using SQLAlchemy in it. One thing we noticed is that when installing SQLAlchemy in the pypy virtual environment the following message appeared: WARNING: C extensions are not…
Roland Pish
  • 815
  • 1
  • 9
  • 21
0
votes
1 answer

Stack Machine with Strings

I'm making a stack based virtual machine in RPython using the PyPy toolchain to convert the RPython to C. So far I have 4 instructions. EOP - End of Program EOI - End of Instruction PUSH - Push item onto the stack PRINT - Print the top of the…
user3452305
  • 27
  • 1
  • 4
0
votes
1 answer

Using pypy instead of psyco

Hi I am trying to make use of pypy on my Python 2.7 application running in windows XP. Just read a little on psyco and it seems pretty easy to use see http://psyco.sourceforge.net/psycoguide/node8.html if __name__ == '__main__': # Import Psyco…
user595985
  • 1,543
  • 4
  • 29
  • 55
0
votes
1 answer

error when installing numpy for pypy2.2.1

I am trying to use pypy. My python scripts are using numpy. So when I used pypy 1.9.0 it showed me this: "The 'numpy' module of PyPy is in-development and not complete. " ImportError: The '`numpy' module` of PyPy is in-development and not complete.…
sau
  • 1,316
  • 4
  • 16
  • 37
0
votes
2 answers

How to install pillow on pypy

How do I install pillow on Windows pypy with png support. I tried pypy -m pip install --use-wheel pillow This does not find a wheel file (for pypy), so it creates pillow, but does not include png support because it does not find zlib. I don't want…
Ruediger Jungbeck
  • 2,836
  • 5
  • 36
  • 59
0
votes
1 answer

Building Pillow for PyPy - unresolved externals

I've been struggling with building Pillow for PyPy (2.1) on my Windows (XP) installation, using easy_install. Problems seems to be related to it missing needed python/pypy header(?). I've been searching Google both up and down for days, hoping to…
b0bz
  • 2,140
  • 1
  • 27
  • 27
0
votes
1 answer

pypy without a visible console window

With cpython I can run a script with a visible console window by: python.exe script.py or without a visible console window by: pythonw.exe script.py With Pypy I can run a script with a visible console window by: pypy.exe script.py How can I run a…
Jacob
  • 1,423
  • 16
  • 29
0
votes
2 answers

Model sys's python implementation

pypy has many built-in function use python implementation.example:link but,i can't find model 'sys' implementation. how can i get it. import sys print help(sys)
zjm1126
  • 63,397
  • 81
  • 173
  • 221
0
votes
1 answer

Making python quit program instantly when hitting ESC

I'm making an algorithm that reads input from keyboard, stores it on a variable called message and then write this variable into a file. However, whenever the user is typing, if they hit Esc, I'd like the execution to stop without any errors. Let's…
Thi G.
  • 1,578
  • 5
  • 16
  • 27
0
votes
1 answer

How to install 3rd party library "pymongo" for pypy3 2.1 Beta 1?

I want to install pymongo for the pypy3 2.1 Beta 1. I'm using ubuntu. The installation instruction says I should go through the following steps: (1) $ curl -O http://python-distribute.org/distribute_setup.py (2) $ curl -O…
user2384994
  • 1,759
  • 4
  • 24
  • 29
0
votes
5 answers

Trying to solve of Project Euler #10, but code takes *a lot* of time to display output

Project Euler Problem 10: The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. I don't think there is any errors in my code. But it takes really a lot of time to give the answer. I've tried using…
sirius_x
  • 183
  • 4
  • 11
0
votes
0 answers

Failed to install PyZMQ 13.1 for PyPy 2.0.2 on Ubuntu 12.04.2 LTS

I use pip install as root. Everything works with CPython because it doesn't use the cffi backend. With PyPy I get the following error: ImportError: PyZMQ CFFI backend couldn't find zeromq: [Errno 2] No such file or directory: …
Pyramid Newbie
  • 6,865
  • 3
  • 24
  • 28
0
votes
1 answer

Tox: cannot invoke Jython and PyPy through tox

I try to invoke Python2.7, PyPy and Jython through a tox test. The tests work perfectly with Python 2.7, however, it always raises an Import- or AssertationError for PyPy and Jython. I found a similiar error report here which states that the…
Jon
  • 11,356
  • 5
  • 40
  • 74
0
votes
2 answers

install PyICU under pypy

I want to install pyicu on pypy on Ubuntu linux, but this command returns the following error: cc -O2 -fPIC -Wimplicit -I/opt/pypy-2.0.2/include -c format.cpp -o build/temp.linux- x86_64-2.7/format.o -DPYICU_VER="1.5" cc1plus: attention : command…