[issue1878] class attribute cache failure (regression)
Paul Pogonyshev
report at bugs.python.org
Sun Jan 20 23:07:19 CET 2008
Paul Pogonyshev added the comment:
It doesn't help:
ERROR: test_default_property (test._gc.AbstractGCProtectorTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/paul/notify/test/_gc.py", line 59, in test_default_property
AbstractGCProtector.set_default (original_protector)
TypeError: can't set attributes of built-in/extension type
'notify.gc.AbstractGCProtector'
With this code:
if (PyObject_SetAttrString ((PyObject *) &AbstractGCProtector_Type,
"default", new_protector)
== -1)
return NULL;
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1878>
__________________________________
More information about the Python-bugs-list
mailing list