[Python-ideas] Adding `Unpicklable` to the `collections` module

Antoine Pitrou solipsis at pitrou.net
Tue Nov 23 22:48:41 CET 2010


On Tue, 23 Nov 2010 21:22:13 +0000 (UTC)
Ram Rachum <cool-rr at cool-rr.com> wrote:
> > 
> > By the way, "Unpickleable" doesn't work since it's ambiguous: you don't
> > know whether it means you can unpickle the thing, or you can't pickle
> > it.
> > 
> > Regards
> > 
> > Antoine.
> 
> 
> Sorry, I didn't explain well enough: I meant that only inherently unpickleable 
> objects, like files and locks, will be instances of `Unpickleable`. So if we 
> have a list containing a file or a lock, it will still be an instance of 
> `Pickleable`, as well as an object which refers to a file/lock as an attribute.
> 
> Maybe this is a good case for having only the negative `Unpickleable` and not 
> the positive `Pickleable`.

Read what I said above about the ambiguity of the name, though.





More information about the Python-ideas mailing list