Message291194
Pickling and copying ImportError doesn't preserve name and path attributes.
>>> import copy, pickle
>>> e = ImportError('test', name='n', path='p')
>>> e.name
'n'
>>> e.path
'p'
>>> e2 = pickle.loads(pickle.dumps(e, 4))
>>> e2.name
>>> e2.path
>>> e2 = copy.copy(e)
>>> e2.name
>>> e2.path
Proposed patch fixes this. |
|
Date |
User |
Action |
Args |
2017-04-05 20:34:36 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, ncoghlan, eric.snow |
2017-04-05 20:34:36 | serhiy.storchaka | set | messageid: <1491424476.08.0.673236809486.issue29998@psf.upfronthosting.co.za> |
2017-04-05 20:34:35 | serhiy.storchaka | link | issue29998 messages |
2017-04-05 20:34:35 | serhiy.storchaka | create | |
|