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

Is it possible to embed PyPy into a .NET application?

I would like to embed a Python interpreter into my .NET application. I'm aware of IronPython, of course, but I'm specifically interested in PyPy, because of its stackless support and microthreads. However, while PyPy can be built against the CLI, it…
Joe White
  • 94,807
  • 60
  • 220
  • 330
17
votes
3 answers

Django with PyPy

Are there some reasons of using Django with PyPy? I read PyPy increases perfomance.
Stan
  • 4,169
  • 2
  • 31
  • 39
17
votes
2 answers

Accurately testing Pypy vs CPython performance

The Problem Description: I have this custom "checksum" function: NORMALIZER = 0x10000 def get_checksum(part1, part2, salt="trailing"): """Returns a checksum of two strings.""" combined_string = part1 + part2 + " " + salt if part2 != "***"…
alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
16
votes
6 answers

Kivy, Eclipse and PyDev (also PyPy)

According to this post: https://groups.google.com/forum/?fromgroups#!topic/kivy-users/n7c3thksnzg, it is possible to use Eclipse as an IDE for Kivy through PyDev. However, I didn't understand the instructions. Can anyone please elaborate on how to…
GaiusSensei
  • 1,860
  • 4
  • 25
  • 44
16
votes
1 answer

Stackless in PyPy and PyPy + greenlet - differences

New version of PyPy ships with integrated Stackless. As far as I know the bundled Stackless is not the same as the origin Stackless from 2001 with continuations. So mainly it is the green threads framework with dispatcher. Greenlet is a spin-of…
Robert Zaremba
  • 8,081
  • 7
  • 47
  • 78
16
votes
1 answer

Installing Python eggs under PyPy

How do I install Python egg under PyPy? During installation, PyPy created /usr/lib64/pypy-1.5/site-packages/ directory. So, I tried using easy_install with prefix set to this directory, however it complains that this is not a valid directory for…
Dr McKay
  • 2,548
  • 2
  • 21
  • 26
16
votes
3 answers

Using PyPy to run a Python program?

I have been told that you can use PyPy to run Python programs, which is a lot faster as it is compiled using a JIT compiler rather than interpreted. The following program finds the largest prime factor of the number 600851475143: import numpy as…
Jonny
  • 1,270
  • 5
  • 19
  • 31
15
votes
3 answers

How to use PyPy on Windows?

I was wondering how to use PyPy 1.8 on Windows XP 32-bit. I downloaded the zip file off the website and installed it into a My Documents file. Initially, I thought it was similar to psyco in that I had to "import psyco," but I found that PyPy.exe…
chrtan
  • 1,704
  • 1
  • 13
  • 17
15
votes
1 answer

Recent-ish changes to the Python execution model?

I just re-read the section on execution models in the 3rd edition of Learning Python (late 2007), and it felt fairly tentative. So, I looked at the same section in the 4th edition (late 2009) and was pretty disappointed that it was completely…
Paul Hoffman
  • 1,820
  • 3
  • 15
  • 20
15
votes
3 answers

LLVM, Parrot, JVM, PyPy + python

What is the problem in developing some languages, for example python for some optimized techniques with some of LLVM / Parrot. PyPy, LLVM, Parrot are the main technologies for common platform development. I see this like: PyPy - framework to…
Robert Zaremba
  • 8,081
  • 7
  • 47
  • 78
15
votes
2 answers

PyPy vs. Nuitka

During the last days, I was toying around with Nuitka, a tool that compiles Python into executable C/C++ programs. I have not found any speed advantage of Nuitka (compared to PyPy). What is the meaning of Nuitka, then? Am I missing something?
user258532
  • 511
  • 5
  • 11
15
votes
3 answers

Does PyPy work with NLTK?

Does PyPy work with NLTK, and if so, is there an appreciable performance improvement, say for the bayesian classifier? While we're at it, do any of the other python environments (shedskin, etc) offer better nlkt performance than cpython?
Parand
  • 102,950
  • 48
  • 151
  • 186
15
votes
1 answer

Why is cffi so much quicker than numpy?

I have been playing around with writing cffi modules in python, and their speed is making me wonder if I'm using standard python correctly. It's making me want to switch to C completely! Truthfully there are some great python libraries I could never…
Tim
  • 2,134
  • 3
  • 26
  • 40
15
votes
1 answer

Why doesn't Python always require spaces around keywords?

Why can spaces sometimes be omitted before and after key words? For example, why is the expression 2if-1e1else 1 valid? Seems to work in both CPython 2.7 and 3.3: $ python2 Python 2.7.3 (default, Nov 12 2012, 09:50:25) [GCC 4.2.1 Compatible Apple…
jterrace
  • 64,866
  • 22
  • 157
  • 202
15
votes
1 answer

Where's the GIL in PyPy?

Is the PyPy GIL part of the PyPy interpreter implementation in RPython, or is it something that translate.py automatically adds? i.e., if I were to write my own new language interpreter in RPython and ran it through translate.py, would it be…
lobsterism
  • 3,469
  • 2
  • 22
  • 36
1 2
3
52 53