Miscellaneous Patches
See also Python20CriticalPatches and Python20FrequentlyAskedQuestions.
Library modules
Note these links are invalid since the transition away from cvsweb.
The mailbox.py module had a last-minute cheese bug. Colored Diff Context Diff
Misc. bugfixes for sre_parse.py Colored Diff Context Diff
Fix typos in UserString.py Colored Diff Context Diff
Fix argument count of _cmp() in filecmp.py Colored Diff Context Diff
Building
TELL64 problems on BSDI and Mac OSX Colored Diff Context Diff
Shared library problems on OpenBSD Colored Diff Context Diff
Long file support on Linux
(Not a diff or patch, but worth a mention.)
On some Linux systems, you can enable long support as follows:
- export CC="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64";
- /configure
But then file.tell() may return negative numbers for positions over 2G, due to an apparent libc bug. As a work-around, change the function _portable_ftell() in Objects/fileobject.c to use the fgetpos() case.