[New-bugs-announce] [issue1687] plistlib.py restricts <integer> to Python int when writing

lafcadio report at bugs.python.org
Sat Dec 22 18:01:34 CET 2007


New submission from lafcadio:

In PlistWriter.writeValue() the line 
  "elif isinstance(value, int):"
should be changed to
  "elif isinstance(value, int) or isinstance(value, long):"
since in http://www.apple.com/DTDs/PropertyList-1.0.dtd is no limitation
to signed 32-bit integer.

It occured an error when I tried to write an "iTunes Music Library.xml"
for the line "<key>Play Date</key><integer>3221924209</integer>".

----------
components: Demos and Tools, Macintosh, XML
messages: 58963
nosy: lafcadio
severity: normal
status: open
title: plistlib.py restricts <integer> to Python int when writing
type: behavior
versions: Python 2.3, Python 2.4, Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1687>
__________________________________


More information about the New-bugs-announce mailing list