[issue7561] Filename-taking functions in posix segfault when called with a bytearray arg.

Sebastian Hagen report at bugs.python.org
Tue Dec 22 20:27:25 CET 2009


Sebastian Hagen <sh_pybugs at memespace.net> added the comment:

Oh, and *forcing* use of the PEP 383 hack for such interfaces would
really be the Wrong Thing. Byte sequences are the natural (and most
efficient, and least prone to misunderstandings) way to store filenames
on a posix-like. Storing them as unicode-except-not-really is an
acceptable hack for interfaces that need to standardize on strings for
some reasons, but that really doesn't apply to these functions, and I'd
always store such filenames as bytes if I know I'm running on a posix-like.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7561>
_______________________________________


More information about the Python-bugs-list mailing list