New submission from Stefan Schwarzer:
I recently was confused whether to raise a `PicklingError` or `TypeError` in `__getstate__` if objects of my class can't and shouldn't be pickled. 
Terry Reedy advised I should use `TypeError`. 
I wonder if the `pickle` module documention should explicitly recommend using `TypeError` if a class wants to say that its objects can't be pickled. What do you think?
 https://mail.python.org/pipermail/python-list/2014-April/670987.html  https://mail.python.org/pipermail/python-list/2014-April/671002.html
---------- assignee: docs@python components: Documentation messages: 217054 nosy: docs@python, sschwarzer priority: normal severity: normal status: open title: Document recommended exception for objects that shouldn't be pickled type: enhancement versions: Python 3.5
_______________________________________ Python tracker firstname.lastname@example.org http://bugs.python.org/issue21333 _______________________________________