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
Gwenaël Samain
cython
Commits
9b08f2ff
Commit
9b08f2ff
authored
Sep 27, 2008
by
ggellner@encolpuis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated pyrex differences and limitations to better reflect current Cython
parent
21675932
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
docs/limitations.rst
docs/limitations.rst
+0
-4
docs/pyrex_differences.rst
docs/pyrex_differences.rst
+14
-1
No files found.
docs/limitations.rst
View file @
9b08f2ff
...
@@ -77,10 +77,6 @@ Other Current Limitations
...
@@ -77,10 +77,6 @@ Other Current Limitations
* The :func:`globals` and :func:`locals` functions cannot be used.
* The :func:`globals` and :func:`locals` functions cannot be used.
* Class and function definitions cannot be placed inside control structures.
* Class and function definitions cannot be placed inside control structures.
* Special methods of extension types cannot have functioning docstrings.
* The use of string literals as comments is not recommended at present,
because Cython doesn't optimize them away, and won't even accept them in places
where executable statements are not allowed.
Semantic differences between Python and Cython
Semantic differences between Python and Cython
----------------------------------------------
----------------------------------------------
...
...
docs/pyrex_differences.rst
View file @
9b08f2ff
...
@@ -77,6 +77,8 @@ yields::
...
@@ -77,6 +77,8 @@ yields::
4
4
6
6
8
8
.. note:: see :ref:`automatic-range-conversion`
Boolean int type (e.g. it acts like a c int, but coerces to/from python as a boolean)
Boolean int type (e.g. it acts like a c int, but coerces to/from python as a boolean)
...
@@ -168,7 +170,9 @@ of step) can be determined.
...
@@ -168,7 +170,9 @@ of step) can be determined.
This may change the semantics if the range causes
This may change the semantics if the range causes
assignment to ``i`` to overflow. Specifically, if this option is set, an error
assignment to ``i`` to overflow. Specifically, if this option is set, an error
will be raised before the loop is entered, whereas without this option the loop
will be raised before the loop is entered, whereas without this option the loop
will execute until a overflowing value is encountered.
will execute until a overflowing value is encountered. If this effects you
change ``Cython/Compiler/Options.py`` (eventually there will be a better
way to set this).
More friendly type casting
More friendly type casting
--------------------------
--------------------------
...
@@ -260,3 +264,12 @@ file with an encoding comment and generally write your source code in UTF-8.
...
@@ -260,3 +264,12 @@ file with an encoding comment and generally write your source code in UTF-8.
This impacts the encoding of byte strings and the conversion of unicode string
This impacts the encoding of byte strings and the conversion of unicode string
literals like ``u'abcd'`` to unicode objects.
literals like ``u'abcd'`` to unicode objects.
Automatic ``typecheck``
========================
Rather than introducing a new keyword :keyword:`typecheck` as explained in the
`Pyrex docs
<http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/Manual/special_methods.html>`_,
Cython emits a (non-spoofable and faster) typecheck whenever
:func:`isinstance` is used with an extension type as the second parameter.
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