Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
58f9e5be
Commit
58f9e5be
authored
Apr 11, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update pypy integration guide
parent
140007a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
docs/src/userguide/pypy.rst
docs/src/userguide/pypy.rst
+15
-1
No files found.
docs/src/userguide/pypy.rst
View file @
58f9e5be
...
...
@@ -2,7 +2,7 @@ Porting Cython code to PyPy
===========================
Since version 0.17, Cython has basic support for cpyext, the layer in
`PyPy <http://pypy.org>`_ that emulates CPython's C-API. This is
`PyPy <http://pypy.org
/
>`_ that emulates CPython's C-API. This is
achieved by making the generated C code adapt at C compile time, so
the generated code will compile in both CPython and PyPy unchanged.
...
...
@@ -110,6 +110,17 @@ protocols for object operations. Cython will map them to an appropriate
usage of the C-API in both CPython and cpyext.
GIL handling
------------
Currently, the GIL handling function :c:func:`PyGILState_Ensure` is not
re-entrant in PyPy and deadlocks when called twice. This means that
code that tries to acquire the GIL "just in case", because it might be
called with or without the GIL, will not work as expected in PyPy.
See `PyGILState_Ensure should not deadlock if GIL already held
<https://bitbucket.org/pypy/pypy/issue/1778>`_.
Efficiency
----------
...
...
@@ -144,6 +155,9 @@ Known problems
* Docstrings of special methods are not propagated to Python space.
* The Python 3.x adaptations in pypy3 only slowly start to include the
C-API, so more incompatibilities can be expected there.
Bugs and crashes
----------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment