Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 73080b8

Browse files
committed
Remove references to psyco, which is mostly unmaintained and doesn't work with Python 3.
2 parents 7dc0047 + 9cb41df commit 73080b8

2 files changed

Lines changed: 4 additions & 18 deletions

File tree

Doc/faq/extending.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,7 @@ Writing C is hard; are there any alternatives?
3737
There are a number of alternatives to writing your own C extensions, depending
3838
on what you're trying to do.
3939

40-
.. XXX make sure these all work; mention Cython
41-
42-
If you need more speed, `Psyco <http://psyco.sourceforge.net/>`_ generates x86
43-
assembly code from Python bytecode. You can use Psyco to compile the most
44-
time-critical functions in your code, and gain a significant improvement with
45-
very little effort, as long as you're running on a machine with an
46-
x86-compatible processor.
40+
.. XXX make sure these all work
4741
4842
`Cython <http://cython.org>`_ and its relative `Pyrex
4943
<http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/>`_ are compilers

Doc/faq/programming.rst

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,11 @@ My program is too slow. How do I speed it up?
121121
That's a tough one, in general. There are many tricks to speed up Python code;
122122
consider rewriting parts in C as a last resort.
123123

124-
In some cases it's possible to automatically translate Python to C or x86
125-
assembly language, meaning that you don't have to modify your code to gain
126-
increased speed.
127-
128-
.. XXX seems to have overlap with other questions!
129-
130124
`Cython <http://cython.org>`_ and `Pyrex <http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/>`_
131125
can compile a slightly modified version of Python code into a C extension, and
132-
can be used on many different platforms.
133-
134-
`Psyco <http://psyco.sourceforge.net>`_ is a just-in-time compiler that
135-
translates Python code into x86 assembly language. If you can use it, Psyco can
136-
provide dramatic speedups for critical functions.
126+
can be used on many different platforms. Depending on your code, Cython
127+
may be able to make it significantly faster than when run by the Python
128+
interpreter.
137129

138130
The rest of this answer will discuss various tricks for squeezing a bit more
139131
speed out of Python code. *Never* apply any optimization tricks unless you know

0 commit comments

Comments
 (0)