Message313306
Consider the following example:
import pickle
class T:
def __init__(self):
self.attr = self.__foo
def __foo(self):
pass
print(pickle.loads(pickle.dumps(T())))
This fails on 3.6 with `AttributeError: 'T' object has no attribute '__foo'` (i.e. there's a lookup on the unmangled name). As a comparison, replacing `__foo` with `_foo` results in working code. |
|
Date |
User |
Action |
Args |
2018-03-06 05:36:52 | Antony.Lee | set | recipients:
+ Antony.Lee |
2018-03-06 05:36:52 | Antony.Lee | set | messageid: <1520314612.17.0.467229070634.issue33007@psf.upfronthosting.co.za> |
2018-03-06 05:36:52 | Antony.Lee | link | issue33007 messages |
2018-03-06 05:36:51 | Antony.Lee | create | |
|