> On 11 May 2020, at 18:09, Andrew Barnert via Python-ideas > <[email protected]> wrote: > > More generally, what’s the use case for %-encoding filenames like this? Are > people expecting it to interact transparently with URLs, so if I save a file > “spam\0eggs” in a Python script and then try to browse to file:///spam\0eggs > <file:///spam/0eggs>” in a browser, the browser will convert the \0 character > to %00 the same way my Python script did and therefore find the file?
No. The \0 can never be part of a valid file in Unix, macOS or Windows. Barry
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/B7HOC3O4XJME7L2HMSSHHUY5FU5JQ6GD/ Code of Conduct: http://python.org/psf/codeofconduct/
