Re: Recommended exception for objects that can't be pickled

2014-04-21 Thread Terry Reedy
On 4/21/2014 9:23 AM, Stefan Schwarzer wrote: Hi, Recently, I got a request [1] to support pickling of `FTPHost` instances in my `ftplib` library. I explained in the ticket why I think it's a bad idea and now want to make explicit that `FTPHost` objects can't be pickled. The usual way to do thi

Recommended exception for objects that can't be pickled

2014-04-21 Thread Stefan Schwarzer
Hi, Recently, I got a request [1] to support pickling of `FTPHost` instances in my `ftplib` library. I explained in the ticket why I think it's a bad idea and now want to make explicit that `FTPHost` objects can't be pickled. The usual way to do this seems to be defining a `__getstate__` method a