[issue4842] int('3L') still valid in Python 3.0

Martin v. Löwis report at bugs.python.org
Mon Jan 19 10:02:06 CET 2009


Martin v. Löwis <martin at v.loewis.de> added the comment:

We should really start maintaining a specification of the pickle
format(s). Pickle is designed to be independent of the Python version,
although protocol extensions may be added over time. In such a
specification, it would say that the format of the L code is "ascii
decimal digits, followed by L".

The patches look fine to me, please apply.

A further change might be that on pickling a long in text mode, the I
code could be used if the value is in range(-2**31,2**31). However, this
is independent of the issue at hand.

----------
assignee:  -> marketdickinson
nosy: +loewis
resolution:  -> accepted

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4842>
_______________________________________


More information about the Python-bugs-list mailing list