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
9698aea9
Commit
9698aea9
authored
Jul 27, 2010
by
Carl Witty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test suite for #561, verifying that all bound methods are still there.
parent
9c39e3e7
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
603 additions
and
2 deletions
+603
-2
Cython/Compiler/Code.py
Cython/Compiler/Code.py
+2
-2
tests/run/special_methods_T561.pyx
tests/run/special_methods_T561.pyx
+601
-0
No files found.
Cython/Compiler/Code.py
View file @
9698aea9
...
...
@@ -1231,8 +1231,8 @@ class CCodeWriter(object):
self
.
put_init_to_py_none
(
code
,
entry
.
type
,
nanny
)
def
put_pymethoddef
(
self
,
entry
,
term
,
allow_skip
=
True
):
if
entry
.
is_special
or
entry
.
name
in
[
'__getitem__'
,
'__setslice__'
,
'__delslice__'
,
'__setitem__'
,
'__delitem__'
,
'__getattr__'
,
'__getattribute__'
,
'__setattr__'
,
'__delattr__'
]
:
if
entry
.
name
not
in
[
'__next__'
,
'__getreadbuffer__'
,
'__getwritebuffer__'
,
'__getsegcount__'
,
'__getcharbuffer__'
,
'__getbuffer__'
,
'__releasebuffer__'
]:
if
entry
.
is_special
or
entry
.
name
==
'__getattribute__'
:
if
entry
.
name
not
in
[
'__
cinit__'
,
'__dealloc__'
,
'__richcmp__'
,
'__
next__'
,
'__getreadbuffer__'
,
'__getwritebuffer__'
,
'__getsegcount__'
,
'__getcharbuffer__'
,
'__getbuffer__'
,
'__releasebuffer__'
]:
# Python's typeobject.c will automatically fill in our slot
# in add_operators() (called by PyType_Ready) with a value
# that's better than ours.
...
...
tests/run/special_methods_T561.pyx
0 → 100644
View file @
9698aea9
This diff is collapsed.
Click to expand it.
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