[Python-ideas] Adding `Unpicklable` to the `collections` module
cool-RR
cool-rr at cool-rr.com
Mon Nov 15 16:46:43 CET 2010
Hello.
Recently I had the need to filter objects based on whether they're picklable
or not:
http://stackoverflow.com/questions/4080688/python-pickling-a-dict-with-some-unpicklable-items
I'm not sure what's a good way to check for a specific object whether it's
picklable.
<http://stackoverflow.com/questions/4080688/python-pickling-a-dict-with-some-unpicklable-items>This
led me to think: Maybe we should have an `Unpicklable` abstract base class
in the `collections` module? Then various unpicklable classes, like locks,
files or widgets, could inherit from this class to signify that they cannot
be pickled.
What do you think?
Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20101115/af5996d3/attachment.html>
More information about the Python-ideas
mailing list