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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1687>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to