> On 11 May 2020, at 18:09, Andrew Barnert via Python-ideas > <python-ideas@python.org> 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 -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/B7HOC3O4XJME7L2HMSSHHUY5FU5JQ6GD/ Code of Conduct: http://python.org/psf/codeofconduct/