[issue9246] os.getcwd() hardcodes max path len
Antoine Pitrou
report at bugs.python.org
Wed Jul 28 00:20:41 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
It's not ok to call PyMem_* functions when the GIL is released. You should only release the GIL around the call to the system getcwd().
> I suppose that Python has a faster memory allocator, or that it has
> better checks when compiled with pydebug?
In this case it doesn't really make a difference, since all allocations larger than 256 bytes are delegated to the system allocator.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9246>
_______________________________________
More information about the Python-bugs-list
mailing list