This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zseil
Recipients
Date 2006-03-27.05:50:42
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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']
History
Date User Action Args
2007-08-23 14:38:14adminlinkissue1443328 messages
2007-08-23 14:38:14admincreate