This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author arigo
Recipients arigo
Date 2008-10-29.15:41:00
SpamBayes Score 1.068875e-05
Marked as misclassified No
Message-id <1225294862.2.0.0798680271584.issue4228@psf.upfronthosting.co.za>
In-reply-to
Content
struct.pack('L', -1) raises a DeprecationWarning since Python 2.5, as it
should.  However, it also returns a different (and nonsensical) result
than Python <= 2.4 used to: it returns '\x00\x00\x00\x00' instead of
'\xff\xff\xff\xff'.

This might lead the zipfile module of release25-maint (the version >=
2.5.2) to produce buggy zip files.  The -1 value can come as the
header_offset field, which will then be packed as an all-0 string
instead of an all-ff string in the zip file headers.

Given the DeprecationWarning I would classify this as low priority. 
However, given that the stdlib module zipfile relies on this feature in
release25-maint, it should probably really be fixed.
History
Date User Action Args
2008-10-29 15:41:02arigosetrecipients: + arigo
2008-10-29 15:41:02arigosetmessageid: <1225294862.2.0.0798680271584.issue4228@psf.upfronthosting.co.za>
2008-10-29 15:41:01arigolinkissue4228 messages
2008-10-29 15:41:00arigocreate