2 ms·
Even Python assumes Unicode, unless one passes “bytes” strings for filenames. I was recently astounded when small Python script I whipped up to hash and compar
by BobbyTables2 3y ago
Even Python assumes Unicode, unless one passes “bytes” strings for filenames.
I was recently astounded when small Python script I whipped up to hash and compare binary file content died with a Unicode related exception — from the filename itself!
(Walking a directory using “bytes” paths fixed it)