summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorRobert Bradshaw <robertwb@math.washington.edu>2008-01-17 07:25:08 -0800
committerRobert Bradshaw <robertwb@math.washington.edu>2008-01-17 07:25:08 -0800
commit73011bd8200c36400119dc18f5881fea90559dba (patch)
treebcb440950b72a1860241ca6ca6b1278f41f8fffb /Cython/Compiler/ModuleNode.py
parent3a9b521505e08c6990abf80e4743939a09ea61d8 (diff)
downloadcython-73011bd8200c36400119dc18f5881fea90559dba.tar.gz
tp_new must always be generated to set the vtab
but we can get away with skipping intermediate classes if nothing new happens
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index ccb4f7e6b..207b02154 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -610,8 +610,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
def generate_new_function(self, scope, code):
tp_slot = TypeSlots.ConstructorSlot("tp_new", '__new__')
slot_func = scope.mangle_internal("tp_new")
- if tp_slot.slot_code(scope) != slot_func:
- return # never used
type = scope.parent_type
base_type = type.base_type
py_attrs = []