Why exception from os.path.exists()?

Chris Angelico rosuav at gmail.com
Fri Jun 1 20:32:55 EDT 2018


On Sat, Jun 2, 2018 at 10:14 AM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
>> But
>> assuming you're right, POSIX is still a set of minimum requirements -
>> not maximums, to my knowledge.
>
> It isn't even a set of minimum requirements. "<" is legal under POSIX,
> but not Windows.

Windows isn't POSIX compliant.

Anyhow, I've come to the conclusion that we're all about equally wrong
here, so I'm going to just stop arguing. Anyone who wants the
behaviour I described can get it easily enough via os.stat; and if you
want ValueError to turn into False, that's also easy enough.

ChrisA



More information about the Python-list mailing list