[New-bugs-announce] [issue18359] pickle fail to handle some class with __new__
yoch
report at bugs.python.org
Thu Jul 4 16:03:55 CEST 2013
New submission from yoch:
Hi,
If some class objects have extra arguments in the __new__ constructor , pickle fail to serialize it.
Here the output of provided test-case :
Traceback (most recent call last):
File "/home/yoch/bug.py", line 19, in <module>
y = pickle.load(fp)
TypeError: __new__() missing 1 required positional argument: 'arg'
Best regards
----------
components: Library (Lib)
files: bug.py
messages: 192290
nosy: yoch.melka
priority: normal
severity: normal
status: open
title: pickle fail to handle some class with __new__
versions: Python 3.3
Added file: http://bugs.python.org/file30774/bug.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18359>
_______________________________________
More information about the New-bugs-announce
mailing list