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

Antoine Pitrou solipsis at pitrou.net
Sat Dec 4 12:49:00 CET 2010


On Sat, 4 Dec 2010 11:14:28 +0000 (UTC)
Ram Rachum <cool-rr at cool-rr.com> wrote:

> Ram Rachum <cool-rr at ...| writes:
> | | So I think it will be best to have both a `pickle.Incompatible` and a 
> | | `pickle.Compatible`. The reason to have the negative is to let people 
> | | inherit from it, the reason to have the positive is to make 
> | | `isinstance` calls more natural. (i.e. avoid a double negative.)
> | | 
> | | What do you think?
> | | 
> | | Ram.
> | | 
> | 
> | So... are people in favor of this idea?
> | 
> | Ram.
> | 
> 
> I see a lot of discussion in this thread about use of `isinstance` in general. 
> What about the `pickle.(In)compatible` proposal? Is it something I should write
> a PEP for?

You don't need to write a PEP. Just open an issue on
http://bugs.python.org and propose a patch.

Regards

Antoine.





More information about the Python-ideas mailing list