New submission from James Sanders <bistromath...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13842>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to