Why exception from os.path.exists()?
Grant Edwards
grant.b.edwards at gmail.com
Fri Jun 1 21:53:11 EDT 2018
On 2018-06-01, Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote:
> On Thu, 31 May 2018 17:43:28 +0000, Grant Edwards wrote:
>
>> Except on the platform in quetion filenames _don't_ contain an embedded
>> \0. What was passed was _not_ a path/filename.
>
> "/wibble/rubbish/nobodyexpectsthespanishinquistion" is not a pathname on
> my system either,
I disagree. On Unix systems that _is_ a path. There may or may not
be a file that exists with that path. OTOH "/wibble\x00/whatever" is
not a Unix path.
--
Grant
More information about the Python-list
mailing list