STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Patch based on Python 2 source code, but raises a MemoryError (instead of an 
OSError) on memory allocation failure.

With my patch, bigpath.py ends with "cwd: 1028 ...aab/aaaaab" with Python 
Python 3.2. Same result with Python 2.6. 1028 is bigger than 1026 (previous 
hardcoded max length in bytes including nul byte).

----------
keywords: +patch
Added file: http://bugs.python.org/file18169/os_getcwd_buffer.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9246>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to