homepage

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 James.Sanders
Recipients James.Sanders, alexandre.vassalotti, pitrou
Date 2012年01月23日.19:24:18
SpamBayes Score 0.0027899896
Marked as misclassified No
Message-id <1327346659.12.0.712807876778.issue13842@psf.upfronthosting.co.za>
In-reply-to
Content
At present, the built-in constants Ellipsis (...) and NotImplemented cannot be pickled. Perhaps there is a good reason for this, but the only discussion I can find is at msg<108957>, where it is stated that these values (along with their types, and type(None)) cannot be pickled.
I ran across this in a class that keeps track of numpy-style slicing operations, and so sometimes stores references to Ellipsis. While this is easy to work around, it does seem a little surprising that ... cannot be pickled, when slice objects can be. I don't know if there is a likely use for pickling NotImplemented.
If this is not changed, perhaps it could be explicitly stated in the documentation that these objects cannot be pickled?
History
Date User Action Args
2012年01月23日 19:24:19James.Sanderssetrecipients: + James.Sanders, pitrou, alexandre.vassalotti
2012年01月23日 19:24:19James.Sanderssetmessageid: <1327346659.12.0.712807876778.issue13842@psf.upfronthosting.co.za>
2012年01月23日 19:24:18James.Sanderslinkissue13842 messages
2012年01月23日 19:24:18James.Sanderscreate

AltStyle によって変換されたページ (->オリジナル) /