[issue1687] plistlib.py restricts to Python int when writing

2007-12-22 Thread lafcadio

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 "Play Date3221924209".

--
components: Demos and Tools, Macintosh, XML
messages: 58963
nosy: lafcadio
severity: normal
status: open
title: plistlib.py restricts  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



[issue1687] plistlib.py restricts to Python int when writing

2008-01-04 Thread lafcadio

lafcadio added the comment:

tiran wrote:
> Should it be backported to 2.5?

I'm sure to understand what 'backport' means. Of course it would be nice
if in future 2.5 versions the read data could be written. But for me its
not important.

__
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