[Python-ideas] Adding `Unpicklable` to the `collections` module
masklinn at masklinn.net
Sun Nov 28 13:40:45 CET 2010
On 2010-11-28, at 10:11 , Antoine Pitrou wrote:
> On Sat, 27 Nov 2010 21:31:02 -0500
> Scott Dial <scott+python-ideas at scottdial.com>
>> On 11/23/2010 6:32 PM, Greg Ewing wrote:
>>> Antoine Pitrou 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
>> As an added bonus, twisted already uses this terminology, see:
> Twisted has a taste for "smart" obscure names (can you guess what
> Avatar and Portal are for?), which is not in core Python's tradition.
> NonPickleable would be fine IMO.
Why not `pickle.Incompatible`? It's not like the ABC has anything to do with collections, so it would make more sense for it to live in `pickle` (which you've already imported if you're trying to pickle an object) rather than collections.
More information about the Python-ideas