Antoine Pitrou <pit...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue1746656>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to