Author shauncutts
Recipients shauncutts
Date 2009-09-02.21:29:51
SpamBayes Score 4.14837e-06
Marked as misclassified No
Message-id <1251926992.64.0.823425954467.issue6827@psf.upfronthosting.co.za>
In-reply-to
Content
Line 335 of copy.py guards call to __setstate__ with

if state:
    ...

However, __getstate__ may legitimately return an empty dictionary even
if __setstate__ still needs to be called. For example,
__setstate__/__getstate__ pair may not want to "persist" default values
(as is the case for me).

The fix would be to change this line to (e.g.):

if state is not None:
    ...
History
Date User Action Args
2009-09-02 21:29:52shauncuttssetrecipients: + shauncutts
2009-09-02 21:29:52shauncuttssetmessageid: <1251926992.64.0.823425954467.issue6827@psf.upfronthosting.co.za>
2009-09-02 21:29:51shauncuttslinkissue6827 messages
2009-09-02 21:29:51shauncuttscreate