Message27682
Logged In: YES
user_id=1326842
The bug is in the copy_reg module.
object.__reduce_ex__ calls function
_slotnames in that module.
There is another bug when __slots__
is a single string. Examples below.
>>> import copy_reg
>>> class A(object):
... __slots__ = ('__spam',)
...
>>> class B(object):
... __slots__ = 'spam'
...
>>> copy_reg._slotnames(A) # should be ['_A__spam']
['__spam']
>>> copy_reg._slotnames(B) # should be ['spam']
['s', 'p', 'a', 'm'] |
|
Date |
User |
Action |
Args |
2007-08-23 14:38:14 | admin | link | issue1443328 messages |
2007-08-23 14:38:14 | admin | create | |
|