Message136174
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. |
|
Date |
User |
Action |
Args |
2011-05-17 19:50:42 | pitrou | set | recipients:
+ pitrou, gregory.p.smith, vstinner, christian.heimes, OG7, meiermic, nadeem.vawda, python-dev |
2011-05-17 19:50:42 | pitrou | set | messageid: <1305661842.62.0.896965305791.issue1746656@psf.upfronthosting.co.za> |
2011-05-17 19:50:42 | pitrou | link | issue1746656 messages |
2011-05-17 19:50:41 | pitrou | create | |
|