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

Competitive Coding - Mask bits - Decimal to Binary

I am trying to solve a competitive coding problem. I managed to pass all the test cases except one. I am guessing that I've missed some kind of an edge case. Problem: Given a decimal number as input, convert it to binary and change the bits at the…
Ankita
  • 21
  • 2
0
votes
1 answer

Is this a use case for pypy?

I am working on an application with a few nested loops of non vectorizable code. There's a group of around 50 functions that get called hundreds or thousands of times. These functions receive dictionaries and pass dictionaries back. Each function is…
Luk17
  • 222
  • 1
  • 11
0
votes
4 answers

Python or PyPy for small group and large project?

Early stage of planning a large project - difficult decision of choosing frameworks :) In mind: "select way - run fast". Select technologies with growth opportunity, prototype as fast as possible. "look at horizon - build a ship". Understand the…
Quiz
  • 514
  • 1
  • 7
  • 13
0
votes
0 answers

How do I make python program run faster using pypy?

I have installed PyPy and rpython in my system.I have barely started with PyPy so forgive me for my inability to grasp any new terms in advance: 1.PyPy post sym link upon usage for execution of program ex: pypy myprogram.py does it yeild faster…
0
votes
0 answers

How to install and run PyPy on beaglebone black?

I have been stuck with this for some time now. Everytime I run ./pypy I get the error: ./pypy: error while loading shared libraries: /lib/libffi.so.5: file too short I need PyPy for its JIT compiler can you guide me here? My system runs on AM335x…
0
votes
1 answer

Does pypy work with the multiprocessing module?

I'm testing 32bit Pypy 6.0.0(python 3.5.3) in Windows 10. My old code works pretty well in normal CPython (v3.6.3 64bit), but it shows an error message (Errno 997) when it runs for pypy. Errors are raised about calling winapi for making Pipe. I…
user3613864
0
votes
1 answer

Installing and running pypy on linux

I have been attempting to install and run pypy3 on a linux machine but am running into troubles. I have been using pypy on a mac but installed it using homebrew so didn't encounter any of these troubles. I downloaded the most recent build and…
Doe a
  • 352
  • 1
  • 11
0
votes
0 answers

PyPy can't find commands on HOME path in windows

I have a fully working script in Python 3.5. I tried running it on PyPy3 to see the speedups, but PyPy3 won't recognize a command which is clearly in the HOME environment variable C:\Users\me\Desktop\PdfConc>where…
Muhammad Ali
  • 712
  • 7
  • 14
0
votes
1 answer

installing SciPy with PyPy on Windows

I am trying to install SciPy with PyPy on Windows. I installed PyPy with the windows 32-bit zip on the website. I installed numpy using python setup.py install. I tried to install scipy with pip install scipy or related commands, I always get a…
TanMath
  • 598
  • 1
  • 9
  • 27
0
votes
1 answer

How to install Pypy for Python 3.5?

I want to install Pypy for python 3.5.3. I am using Windows 10, 64 bits. I have looked in pypy website https://pypy.org/download.html but I cannot find useful information. Can anyone help me on how to install and how to use pypy? I have read it…
Migui Mag
  • 187
  • 1
  • 3
  • 13
0
votes
1 answer

Error connecting to PyPy3 multiprocessing remote manager

I am trying to run the remote manager example code from the multiprocessing documentation in pypy3 but I get an error connecting the client. Traceback (most recent call last): File "C:/temp/testpypy/mp_client.py", line 7, in
Techniquab
  • 843
  • 7
  • 22
0
votes
1 answer

RPython: Is it possible to specify/enforce a type on a variable?

I'm using os.read() to read a files' binary contents into a list. PyPy seems to have determined that all elements of the list will be of type int. Would it be possible to explicitly annotate the variable such that all elements will be considered to…
2080
  • 1,223
  • 1
  • 14
  • 37
0
votes
0 answers

ImportError: No module named 'urwid'

I'm have an issue within a python 2.7 (pypy) script which has the code below from urwid import ExitMainLoop It's showing me the error in the title of this question even though it's been installed via pip and can be seen in the output when running…
0
votes
1 answer

Build Cython Extension with pypy3-v5.10.1 want to use Visual Studio 2015

Pypy3 Python 3.5.3 (3f6eaa010fce, Jan 11 2018, 04:46:12) [PyPy 5.10.1 with MSC v.1500 32 bit] Cython 0.28.1 https://ci.appveyor.com/project/nooperpudd/ctpwrapper/build/1.0.396/job/xx7ecwgy5bqvu0up#L18 in appveryor.yml file I already add image: -…
nooper
  • 691
  • 1
  • 9
  • 25
0
votes
1 answer

Switching back : pypy =to=> python?

I installed pypy to test it ! Now when I try to do something it seems to prefer pypy directories , instead of python. Ex.: # pip install --upgrade setuptools /usr/local/lib/pypy2.7/dist-packages/pip/_vendor/urllib3/util............ # ls…
sten
  • 7,028
  • 9
  • 41
  • 63