Commit 6344ec54 authored by Stefan Behnel's avatar Stefan Behnel

prevent special __weakref__ attribute from triggering generation of garbage...

prevent special __weakref__ attribute from triggering generation of garbage collection code for the type
parent 3b668791
......@@ -1781,7 +1781,7 @@ class CClassScope(ClassScope):
entry = self.declare(name, cname, type, pos, visibility)
entry.is_variable = 1
self.var_entries.append(entry)
if type.is_pyobject:
if type.is_pyobject and name != '__weakref__':
self.has_pyobject_attrs = 1
if visibility not in ('private', 'public', 'readonly'):
error(pos,
......
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