diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2016-11-17 22:56:56 -0800 |
---|---|---|
committer | Robert Bradshaw <robertwb@gmail.com> | 2016-11-17 22:59:38 -0800 |
commit | 530729168f51e071bbff6259dab6426425777e92 (patch) | |
tree | ceae37543622bde4f06b18af9b6f40ccfa9bc8b6 | |
parent | 6dd263aa3d2d6d80f2d7b96a640a27538fdaa0b2 (diff) | |
download | cython-530729168f51e071bbff6259dab6426425777e92.tar.gz |
Use classmethod utility code even when it's not called.
This helps with #1510. There is still a bug in that the builtin
classmethod is not use here.
-rw-r--r-- | Cython/Compiler/Symtab.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Cython/Compiler/Symtab.py b/Cython/Compiler/Symtab.py index d14d11efa..7480e5703 100644 --- a/Cython/Compiler/Symtab.py +++ b/Cython/Compiler/Symtab.py @@ -1816,6 +1816,7 @@ class ClassScope(Scope): py_object_type, [PyrexTypes.CFuncTypeArg("", py_object_type, None)], 0, 0)) entry.utility_code_definition = Code.UtilityCode.load_cached("ClassMethod", "CythonFunction.c") + self.use_entry_utility_code(entry) entry.is_cfunction = 1 return entry |