Gregory P. Smith added the comment: A significant portion of the python standard library is broken due to incorrect use of the struct module on LP64 platforms. I'm attaching a patch that should clean it up.
I need Mac OS X people to confirm that the Mac changes are sane. Its possible that the Lib/posixfile.py change could be a candidate for a 2.4 security backport if it turns out the _posixfile_.lock() implementation is indeed broken when a 64bit python is used on some platforms. I'll leave that up to the 2.4 releaser to decide. ---------- components: +Library (Lib) keywords: +64bit, patch -easy priority: normal -> high severity: normal -> major title: incorrect assumption about unsigned long byte size -> assumption about unsigned long byte size in struct module usage versions: +Python 2.4, Python 2.5, Python 2.6 Added file: http://bugs.python.org/file9276/struct-long-nuke-01.diff __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1789> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com