Message313422
```
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. |
|
Date |
User |
Action |
Args |
2018-03-08 06:09:21 | vitaly.krug | set | recipients:
+ vitaly.krug |
2018-03-08 06:09:21 | vitaly.krug | set | messageid: <1520489361.61.0.467229070634.issue33023@psf.upfronthosting.co.za> |
2018-03-08 06:09:21 | vitaly.krug | link | issue33023 messages |
2018-03-08 06:09:21 | vitaly.krug | create | |
|