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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
140007a6
Commit
140007a6
authored
Apr 11, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up rst headings
parent
94234c13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
docs/src/userguide/pypy.rst
docs/src/userguide/pypy.rst
+8
-8
No files found.
docs/src/userguide/pypy.rst
View file @
140007a6
Porting Cython code to PyPy
Porting Cython code to PyPy
===========================
=
===========================
Since version 0.17, Cython has basic support for cpyext, the layer in
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
...
@@ -14,7 +14,7 @@ that works in both CPython and PyPy.
...
@@ -14,7 +14,7 @@ that works in both CPython and PyPy.
Reference counts
Reference counts
----------------
-
----------------
A general design difference in PyPy is that the runtime does not use
A general design difference in PyPy is that the runtime does not use
reference counting internally but always a garbage collector. Reference
reference counting internally but always a garbage collector. Reference
...
@@ -25,7 +25,7 @@ any references held in Python space.
...
@@ -25,7 +25,7 @@ any references held in Python space.
Object lifetime
Object lifetime
---------------
-
---------------
As a direct consequence of the different garbage collection characteristics,
As a direct consequence of the different garbage collection characteristics,
objects may see the end of their lifetime at other points than in
objects may see the end of their lifetime at other points than in
...
@@ -45,7 +45,7 @@ e.g. when context managers can be used together with the ``with`` statement.
...
@@ -45,7 +45,7 @@ e.g. when context managers can be used together with the ``with`` statement.
Borrowed references and data pointers
Borrowed references and data pointers
-------------------------------------
-
-------------------------------------
The memory management in PyPy is allowed to move objects around in memory.
The memory management in PyPy is allowed to move objects around in memory.
The C-API layer is only an indirect view on PyPy objects and often replicates
The C-API layer is only an indirect view on PyPy objects and often replicates
...
@@ -88,7 +88,7 @@ when done with it to convert it into an owned reference.
...
@@ -88,7 +88,7 @@ when done with it to convert it into an owned reference.
Builtin types, slots and fields
Builtin types, slots and fields
-------------------------------
-
-------------------------------
The following builtin types are not currently available in cpyext in
The following builtin types are not currently available in cpyext in
form of their C level representation: :c:type:`PyComplexObject`,
form of their C level representation: :c:type:`PyComplexObject`,
...
@@ -111,7 +111,7 @@ usage of the C-API in both CPython and cpyext.
...
@@ -111,7 +111,7 @@ usage of the C-API in both CPython and cpyext.
Efficiency
Efficiency
----------
-
----------
Simple functions and especially macros that are used for speed in CPython
Simple functions and especially macros that are used for speed in CPython
may exhibit substantially different performance characteristics in cpyext.
may exhibit substantially different performance characteristics in cpyext.
...
@@ -137,7 +137,7 @@ than Cython currently does, it's best to fix Cython for everyone's benefit.
...
@@ -137,7 +137,7 @@ than Cython currently does, it's best to fix Cython for everyone's benefit.
Known problems
Known problems
--------------
-
--------------
* As of PyPy 1.9, subtyping builtin types can result in infinite recursion
* As of PyPy 1.9, subtyping builtin types can result in infinite recursion
on method calls in some rare cases.
on method calls in some rare cases.
...
@@ -146,7 +146,7 @@ Known problems
...
@@ -146,7 +146,7 @@ Known problems
Bugs and crashes
Bugs and crashes
----------------
-
----------------
The cpyext implementation in PyPy is much younger and substantially less
The cpyext implementation in PyPy is much younger and substantially less
mature than the well tested C-API and its underlying native implementation
mature than the well tested C-API and its underlying native implementation
...
...
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