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

Why is pypy flask aplication slower than cpython?

I have a flask application (app.py) which returns a string, from flask import Flask import os app = Flask(__name__) @app.route("/") def hello(): return "Flask inside Docker!!" if __name__ == "__main__": port = int(os.environ.get("PORT",…
Mohan
  • 97
  • 1
  • 6
-1
votes
1 answer

Install pyCurl on Pypy

I am trying to install the compiled version of PyCurl, but I get the error: My system configuration:
-1
votes
2 answers

PyPy vs. CPython 3.8 - Difference in "number of iterations" with the same code?

I've stumbled upon an interesting phenomenon while I was tinkering with my sudoku solving algorithm written in Python. I'm counting iterations in the backtracking algorithm and saving the number in a log file. (The algorithm seems to be completely…
kasztp
  • 11
  • 1
  • 4
-1
votes
1 answer

Error when installing psutil module - [Windows pypy 2.7]

Trying to install module "psutil" I'm usting Windows 10 and pypy 2.7 version https://pypy.org/download.html pypy -m pip install psutil DEPRECATION: A future version of pip will drop support for Python 2.7. More details about Python 2 support in…
-1
votes
1 answer

There is "utf8' codec can't decode byte 0xcd in position" when pypy import any module

There is error: UnicodeDecodeError: 'utf8' codec can't decode byte 0xcd in position 23: invalid continuation byte when import module file When I try to install the numpy for pypy3-v5.10.1-win32 (numpy download from…
-1
votes
1 answer

pypy pip: error when attempting to install cryptography on Ubuntu 18.04 LTS

When installing cryptography the wheel fails to build and pip outputs the following error code: build/temp.linux-x86_64-2.7/_openssl.c:12:12: fatal error: pyconfig.h: No such file or directory # include
E. Jole
  • 11
  • 1
-1
votes
1 answer

not able to compile wxpython-cffi on macOS with pypy3

I'm trying to follow/modify these instructions to get matplotlib compiled on pypy3, but when I try to compile wxpython-cffi with pypy3 build.py dox I get this error: Traceback (most recent call last): File "build.py", line 1650, in
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
-1
votes
1 answer

Shifting from python to pypy

I am currently working on a project where the source files are all written in python. The files/modules are currently being run on a python interpreter(CPython). I want to use PyPy interpreter instead as i see it is much more efficient. Is there way…
-1
votes
2 answers

add new module for pypy

I want to use the pypy interpreter. Currently my application works well under python 2.5 and CPython, as I view the variable sys.path: '/ apps / work', '/ apps / work / application' Twisted-12.0.0-py2.5-linux-x86_64.egg. How can I add the path to…
-1
votes
2 answers

Names formatting within for loop

I am trying to improve my existing code, is there any way to affect multiples different variables without using dict or lists or tuples?? I am trying to write something like: number1 = 1 number2 = 2 number3 = 3 for i in (1,2,3): number{i} +=…
user906780
-2
votes
1 answer

Using Cython with PyPy can speed up?

I've written a transpiler in python which works well with PyPy. Now I'm thinking to speed up more my existing code base with cython. Will Using Cython with pypy increase or decrease the performance? I'm using PyPy 3.9 and here's my…
Adib Rahman
  • 7
  • 1
  • 3
-2
votes
2 answers

Interpreter design in Python

I am new to Python, and I want to make a small interpretor/compiler with it. just a hobby project initially. I would like to know how good is it in comparison to c/c++ to accomplish such a job? it has highly efficient string processing library built…
SRC
  • 2,123
  • 3
  • 31
  • 44
-3
votes
1 answer

Possible reasons why pypy might be slower than default compiler

I am doing this project for school whereby I am supposed to make the scripts run faster as it is very slow. For the past few months as I had no access to the actual scripts, I was testing on a dummy script written by me, which performs the same…
confused_kid
  • 63
  • 1
  • 11
-3
votes
1 answer

pypy how to find the file about implement list type

how to find python list implement on pypy i want read the source code bui i didn't find it any one could give a help thanks
maolingzhi
  • 681
  • 3
  • 8
  • 16
1 2 3
52
53