[issue1746656] IPv6 Interface naming/indexing functions
Antoine Pitrou
report at bugs.python.org
Tue May 17 21:50:42 CEST 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
Sorry to reopen, but do these methods really have to return *byte strings* for interface names?
In Python 3, we usually take the position that textually meaningful data should be str, not bytes (even filenames under POSIX). The usual way to do this is to use the "filesystem encoding" (os.fsdecode in pure Python, PyUnicode_DecodeFSDefault in C).
Also, the tests are really minimal. They should at least check the type and structure of values returned by these functions.
----------
nosy: +pitrou
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1746656>
_______________________________________
More information about the Python-bugs-list
mailing list