[Python-ideas] Adding `Unpicklable` to the `collections` module
Fred Drake
fdrake at acm.org
Tue Nov 23 22:04:29 CET 2010
On Tue, Nov 23, 2010 at 3:46 PM, cool-RR <cool-rr at cool-rr.com> wrote:
> (Spelling note: People told me that "pickleable" (with an "e" in the middle)
> makes more sense, so I'm using that now.)
Strange; doesn't fit my expectations.
> The best solution might be to have both a `Pickleable` class and
> an `Unpickleable` class. The reason to have the former is that
> `isinstance(thing, Pickleable)` is more natural, and the reason to have the
> latter is because we can't require people to inherit from `Pickleable` for
> every single class that they define. (Since pickleability is the rule and
> unpickleability is the exception.)
Well, that certainly matches current (broken) expectations.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
"A storm broke loose in my mind." --Albert Einstein
More information about the Python-ideas
mailing list