[New-bugs-announce] [issue13842] Cannot pickle Ellipsis or NotImplemented

James Sanders report at bugs.python.org
Mon Jan 23 20:24:19 CET 2012


New submission from James Sanders <bistromathic1 at gmail.com>:

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?

----------
messages: 151838
nosy: James.Sanders, alexandre.vassalotti, pitrou
priority: normal
severity: normal
status: open
title: Cannot pickle Ellipsis or NotImplemented
type: enhancement
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13842>
_______________________________________


More information about the New-bugs-announce mailing list