Commit f3871122 authored by Stefan Behnel's avatar Stefan Behnel

move utility code reference of __Pyx_Method_ClassMethod() into Entry to allow...

move utility code reference of __Pyx_Method_ClassMethod() into Entry to allow its eventual removal at a later stage
parent e869e115
...@@ -1649,16 +1649,16 @@ class ClassScope(Scope): ...@@ -1649,16 +1649,16 @@ class ClassScope(Scope):
return entry return entry
if name == "classmethod": if name == "classmethod":
# We don't want to use the builtin classmethod here 'cause it won't do the # We don't want to use the builtin classmethod here 'cause it won't do the
# right thing in this scope (as the class memebers aren't still functions). # right thing in this scope (as the class members aren't still functions).
# Don't want to add a cfunction to this scope 'cause that would mess with # Don't want to add a cfunction to this scope 'cause that would mess with
# the type definition, so we just return the right entry. # the type definition, so we just return the right entry.
self.use_utility_code(Code.UtilityCode.load_cached("ClassMethod", "CythonFunction.c"))
entry = Entry( entry = Entry(
"classmethod", "classmethod",
"__Pyx_Method_ClassMethod", "__Pyx_Method_ClassMethod",
PyrexTypes.CFuncType( PyrexTypes.CFuncType(
py_object_type, py_object_type,
[PyrexTypes.CFuncTypeArg("", py_object_type, None)], 0, 0)) [PyrexTypes.CFuncTypeArg("", py_object_type, None)], 0, 0))
entry.utility_code_definition = Code.UtilityCode.load_cached("ClassMethod", "CythonFunction.c")
entry.is_cfunction = 1 entry.is_cfunction = 1
return entry return entry
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment