projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b19736
)
minor cleanup
author
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 23 Feb 2013 21:19:27 +0000
(22:19 +0100)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 23 Feb 2013 21:19:27 +0000
(22:19 +0100)
Cython/Compiler/PyrexTypes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/PyrexTypes.py
b/Cython/Compiler/PyrexTypes.py
index
dc7ee6d
..
ac1d6a5
100755
(executable)
--- a/
Cython/Compiler/PyrexTypes.py
+++ b/
Cython/Compiler/PyrexTypes.py
@@
-1033,9
+1033,6
@@
class PyExtensionType(PyObjectType):
is_extension_type = 1
has_attributes = 1
- def needs_nonecheck(self):
- return True
-
objtypedef_cname = None
def __init__(self, name, typedef_flag, base_type, is_external=0):
@@
-1060,6
+1057,9
@@
class PyExtensionType(PyObjectType):
if scope:
scope.parent_type = self
+ def needs_nonecheck(self):
+ return True
+
def subtype_of_resolved_type(self, other_type):
if other_type.is_extension_type or other_type.is_builtin_type:
return self is other_type or (