[issue6290] cPickle can misread data type

2010-08-05 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: It is too late for 2.6.6 now that it is released. -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6290] cPickle can misread data type

2010-07-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I think this can be closed. It should no longer be a problem in Python 2.7 or Python 3.x, and there's a workaround (use protocol 1 or 2) for Python 2.6. In theory, it *could* still be fixed for Python 2.6.6, but changing the pickle output

[issue6290] cPickle can misread data type

2010-07-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: However, here's a patch. I haven't tested it on Windows. -- keywords: +patch Added file: http://bugs.python.org/file17965/issue6290.patch ___ Python tracker rep...@bugs.python.org

[issue6290] cPickle can misread data type

2009-06-23 Thread Alex James
Alex James ac.ja...@shaw.ca added the comment: Your test prints: '(1p1\nF1.#INF\naF-1.#INF\naF-1.IND\na.' [inf, -inf, nan] My installation is Python 2.6.2 as currently distributed. Specifying protocol 1 or 2 does circumvent the error. Thank you. -- components: +Documentation,

[issue6290] cPickle can misread data type

2009-06-23 Thread Alex James
Changes by Alex James ac.ja...@shaw.ca: -- components: +Library (Lib) -Documentation, Extension Modules, Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6290 ___

[issue6290] cPickle can misread data type

2009-06-22 Thread Alex James
Alex James ac.ja...@shaw.ca added the comment: I have now pinpointed the error to a list of infinities (see attached). When using pickle.py to read the cPickle'd data we get a different, and more, informative error: ValueError: invalid literal for float(): 1.#INF -- Added file:

[issue6290] cPickle can misread data type

2009-06-22 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Thanks for the test case. I will take a look. -- assignee: georg.brandl - alexandre.vassalotti components: +Library (Lib) -Documentation, Extension Modules, Windows ___ Python tracker

[issue6290] cPickle can misread data type

2009-06-22 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Could you give me the output of this? import cPickle print repr(cPickle.dumps([float('+inf'), float('-inf'), float('nan')])) print [float('+inf'), float('-inf'), float('nan')] By the way, are you sure this bug occurs on Python

[issue6290] cPickle can misread data type

2009-06-15 Thread Alex James
New submission from Alex James ac.ja...@shaw.ca: When using cPickle to pickle / unpickle an object instance whose __dict__ contains a dictionary of NumPy Arrays (on a windows32 system), some of the array elements have the wrong type raising a ValueError: could not convert string to float. On

[issue6290] cPickle can misread data type

2009-06-15 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Could you provide a test case? The behaviour you are describing sounds like a bug in cPickle. -- nosy: +alexandre.vassalotti ___ Python tracker rep...@bugs.python.org