<div dir="ltr">Hello.<div><br></div><div>Recently I had the need to filter objects based on whether they're picklable or not:</div><div><br></div><div><a href="http://stackoverflow.com/questions/4080688/python-pickling-a-dict-with-some-unpicklable-items">http://stackoverflow.com/questions/4080688/python-pickling-a-dict-with-some-unpicklable-items</a></div>
<div><br></div><div>I'm not sure what's a good way to check for a specific object whether it's picklable.</div><div><br></div><div><a href="http://stackoverflow.com/questions/4080688/python-pickling-a-dict-with-some-unpicklable-items"></a>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.</div>
<div><br></div><div>What do you think?<br><div><br><br>
</div></div><div>Ram.</div></div>