[issue1789] assumption about unsigned long byte size in struct module usage

2010-06-29 Thread Mark Dickinson
Mark Dickinson added the comment: Doc patch committed in revisions r82379 through r82382. -- status: open -> closed ___ Python tracker ___ ___

[issue1789] assumption about unsigned long byte size in struct module usage

2010-06-25 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: gregory.p.smith -> mark.dickinson status: closed -> open ___ Python tracker ___ ___ Python-bug

[issue1789] assumption about unsigned long byte size in struct module usage

2010-06-25 Thread Joseph Turian
Joseph Turian added the comment: That patch gives good clarification. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue1789] assumption about unsigned long byte size in struct module usage

2010-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a proposed doc clarification. -- keywords: +patch Added file: http://bugs.python.org/file17770/issue1789_doc.patch ___ Python tracker ___

[issue1789] assumption about unsigned long byte size in struct module usage

2010-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: > This documentation (http://docs.python.org/library/struct.html) > claims that an unsigned long is 4 bytes. I don't think it does, if you read it closely. Of course, patches to improve the docs are always welcome. :) If you're looking at the table of format

[issue1789] assumption about unsigned long byte size in struct module usage

2010-06-25 Thread Joseph Turian
Joseph Turian added the comment: I just got bit by this bug. This documentation (http://docs.python.org/library/struct.html) claims that an unsigned long is 4 bytes. On my machine, it's 8. -- nosy: +Joseph Turian ___ Python tracker

[issue1789] assumption about unsigned long byte size in struct module usage

2008-01-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: The giant patch was unnecessary, I misread what the struct module was actually doing. Auditing all uses of struct in the standard library the only ones that look suspicious to me are: Lib/posixfile.py and all of the uses in Lib/plat-mac/ posixfile is probabl

[issue1789] assumption about unsigned long byte size in struct module usage

2008-01-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Anders J. Munch on python-dev correctly says: You overlooked the words "Standard size and alignment are as follows" that start the quoted paragraph. It's a little confusing because standard size is not the default. The default is platform-specific sizes. On

[issue1789] assumption about unsigned long byte size in struct module usage

2008-01-23 Thread Georg Brandl
Changes by Georg Brandl: -- priority: high -> urgent __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1789] assumption about unsigned long byte size in struct module usage

2008-01-23 Thread Gregory P. Smith
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