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

Can PyPy use multiple CPUs in one process?

There is a GIL in CPython, and I heard that PyPy does not have that problem. Is this true?
lifei
  • 235
  • 2
  • 10
0
votes
1 answer

PyPy cleanup for redistribution

How can I cleanup PyPy after building it? Which parts are absolutely critical and which parts can I safely delete? Obviously it's necessary to remove all version controll related files and folders (.gitignore, .hg, .hgignore, .hgsubstate, .hgtags)…
Alex Bolotov
  • 8,781
  • 9
  • 53
  • 57
0
votes
2 answers

How to create a symlink to PyPy

The PyPy docs mention creating a symlink to allow pypy to be used globally, but I can't seem to figure out how to do it. I currently have this command: mklink \pypy C:\pypy However, it keeps coming up with an error saying Access is denied.. Any…
dantdj
  • 1,237
  • 3
  • 19
  • 40
0
votes
1 answer

How do I open a pypy process from an ordinary python program?

I run a simple piece of code using python which I would like to open another program in pypy (as this is much faster). I would also like to be able to pass in a dictionary into the pypy program. I can get the file to open…
user1696811
  • 941
  • 4
  • 10
  • 20
0
votes
2 answers

Error trying to use PyPy and Scapy to sniff wireless adapters

I am attempting to use PyPy and Scapy to sniff on a wireless adapter. I'm on Ubuntu Linux, so I put my card into monitor mode using airmon-ng, open up a REPL, and type the following (after importing scapy): sniff(prn=lambda pkt: pkt.summary(),…
0
votes
1 answer

Python loop transfer in other programming language

Again I have a question concerning large loops. Suppose I have a function limits def limits(a,b): *evaluate integral with upper and lower limits a and b* return float result A and B are simple np.arrays that store my values a and b. Now I…
madzone
  • 195
  • 1
  • 2
  • 9
0
votes
2 answers

How do I open a .py file in python from a .py file in pypy?

My program currently consists of 2 .py files. I run the main part of the code in pypy (which is much faster) and then I open a second file in python that plots my data using matplotlib.pyplot. I have managed to open the using:…
user1696811
  • 941
  • 4
  • 10
  • 20
0
votes
1 answer

scrapy throw a send_catch_log_deferred exception on PyPy

when I use scrapy shell on PyPy ,it's throw some Execption ,so what's this error? This is error information % /usr/local/share/pypy/scrapy shell http://www.baidu.com zsh: correct 'shell' to 'shells' [nyae]? n 2012-11-09…
royisme
  • 11
  • 1
0
votes
1 answer

CPython and PyPy on Mac OS X 10.6

I'm planning to install PyPy on my system. I already have CPython implementation existing on my system. Will installing PyPy affect this existing system implementation in any way ? In nutshell, I want to know if PyPy and CPython an co-exist on any…
0
votes
0 answers

How to link translated pypy/rpython to external jvm libraries?

I am trying to compile RPython code to JVM using pypy's translator toolchain. However, there are many CPython libraries that are not supported, like urllib.urlopen() fails to translate to jvm. Is it possible for me to have the jvm translation…
user1678406
  • 1,715
  • 2
  • 11
  • 11
0
votes
1 answer

Pypy error: RuntimeWarning: C function without declared arguments called, usinc ctypes

I'm trying to work with Pypy, but as soon as I've executed my code in Pypy fails, but with cPython works. I've found several issues googling around regarding ctypes and pypy, but I'm not able to find the error in my code: libc =…
Xavi
  • 1
0
votes
2 answers

Running Python Scripts from Command Line with Pypy Interpreter

So, I have installed the pypy pre-built interpreter to my home folder in windows; however, it only allows me to execute python scripts through the interpreters interface (similar to IDLE). I would like to extend this functionality to the cmd line in…
jab
  • 5,673
  • 9
  • 53
  • 84
0
votes
0 answers

How to install Autobahn with pypy

I'm using PyPy 1.8 on Windows, and I tried to install Autobahn. I fired up the interpreter, typed in "import autobahn", it crashed with error message: "Fatal Python error: PyThreadState_Get: no current thread pypy..."
Ethan
  • 1,488
  • 3
  • 19
  • 24
-1
votes
1 answer

My multiprocessing threadpool takes longer to complete tasks than a single-threaded implementation

I have written an algorithim and am trying to compare performance of diffrent versions. My benchmark function uses a threadpool, but it takes the same time or longer to benchmark than a single-core implementation. I have used pypy and python,…
-1
votes
1 answer

running pypy3.5 with AWS Lambda custom runtime

As AWS Lambda doesn't provide run time from pypy3, I am trying to use customer runtime from below link.. https://github.com/iopipe/lambda-runtime-pypy3.5?msclkid=0cdabf06b4c611eca1f350bd8a8e522e But I don't know how to make changes in the bootstrap…
SSA
  • 117
  • 4
1 2 3
52
53