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
b4b12c73
Commit
b4b12c73
authored
Jan 17, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct the signature of "__richcmp__()": first argument is "self", not "object".
parent
fee5e490
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
CHANGES.rst
CHANGES.rst
+4
-0
Cython/Compiler/TypeSlots.py
Cython/Compiler/TypeSlots.py
+1
-2
No files found.
CHANGES.rst
View file @
b4b12c73
...
...
@@ -88,6 +88,10 @@ Bugs fixed
CPython with a live exception set. This triggered incorrect behaviour
and crashes, especially in CPython 3.7.
* The signature of the special ``__richcmp__()`` method was corrected to recognise
the type of the first argument as ``self``. It was previously treated as plain
object, but CPython actually guarantees that it always has the correct type.
* Some async helper functions were not defined in the generated C code when
compiling simple async code. (Github issue #2075)
...
...
Cython/Compiler/TypeSlots.py
View file @
b4b12c73
...
...
@@ -678,8 +678,7 @@ delattrofunc = Signature("TO", 'r')
cmpfunc
=
Signature
(
"TO"
,
"i"
)
# typedef int (*cmpfunc)(PyObject *, PyObject *);
reprfunc
=
Signature
(
"T"
,
"O"
)
# typedef PyObject *(*reprfunc)(PyObject *);
hashfunc
=
Signature
(
"T"
,
"h"
)
# typedef Py_hash_t (*hashfunc)(PyObject *);
# typedef PyObject *(*richcmpfunc) (PyObject *, PyObject *, int);
richcmpfunc
=
Signature
(
"OOi"
,
"O"
)
# typedef PyObject *(*richcmpfunc) (PyObject *, PyObject *, int);
richcmpfunc
=
Signature
(
"TOi"
,
"O"
)
# typedef PyObject *(*richcmpfunc) (PyObject *, PyObject *, int);
getiterfunc
=
Signature
(
"T"
,
"O"
)
# typedef PyObject *(*getiterfunc) (PyObject *);
iternextfunc
=
Signature
(
"T"
,
"O"
)
# typedef PyObject *(*iternextfunc) (PyObject *);
descrgetfunc
=
Signature
(
"TOO"
,
"O"
)
# typedef PyObject *(*descrgetfunc) (PyObject *, PyObject *, PyObject *);
...
...
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