2009/4/27 Cameron Simpson <cs at zip.com.au>: > I think that, almost independent of this PEP, there should be an > os.fsencode() function that takes a byte string (as a POSIX OS call > will take) and performs the _same_ byte->string encoding that listdir() > and friends are doing under the hood. And a partner os.fsdecode() for > string->bytes. That will save a lot of wheel respoking and probably make > it easier for people to think about this. some_path.encode(sys.getfilesystemencoding()) -- Regards, Benjamin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4