[issue28844] Pickling units

2016-11-30 Thread R. David Murray
R. David Murray added the comment: To clarify: it looks from your report like units hasn't implemented pickling support. It isn't automatic for all classes. -- ___ Python tracker _

[issue28844] Pickling units

2016-11-30 Thread R. David Murray
R. David Murray added the comment: unit is not part of the stdlib. Please report this to whatever the upstream is for the package and/or to Anaconda. -- nosy: +r.david.murray resolution: -> third party stage: -> resolved status: open -> closed ___

[issue28844] Pickling units

2016-11-30 Thread Adam
New submission from Adam: See below code to show you can't round-trip units through pickle: Python 3.5.1 |Anaconda 4.0.0 (64-bit)| (default, Feb 16 2016, 09:49:46) [MSC v.1900 64 bit AMD64)] import units u = units.unit('myUnit') x = u(3.0) import pickle f = open('C:/temp/what.pkl', 'wb') pickle