Vladimir

14%
Flag icon
sys.getfilesystemencoding() is used to encode/decode filenames (not file contents). It is used when open() gets a str argument for the filename; if the filename is given as a bytes argument, it is passed unchanged to the OS API.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview