This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vitaly.krug
Recipients vitaly.krug
Date 2018-03-08.06:09:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520489361.61.0.467229070634.issue33023@psf.upfronthosting.co.za>
In-reply-to
Content
```
import copy
import ssl

copy.copy(ssl.create_default_context())
```
results in 

`TypeError: can't pickle SSLContext objects`

This prevents me from being able to `copy.deepcopy()` an object that references `ssl.SSLContext`.

The apparent root cause is apparently that `ssl.SSLContext` passes an extra arg to its `__new__` method, but doesn't implement the method `__getnewargs__` that would let `copy` extract the extra arg.
History
Date User Action Args
2018-03-08 06:09:21vitaly.krugsetrecipients: + vitaly.krug
2018-03-08 06:09:21vitaly.krugsetmessageid: <1520489361.61.0.467229070634.issue33023@psf.upfronthosting.co.za>
2018-03-08 06:09:21vitaly.kruglinkissue33023 messages
2018-03-08 06:09:21vitaly.krugcreate