Why exception from os.path.exists()?
Grant Edwards
grant.b.edwards at gmail.com
Fri Jun 1 10:38:56 EDT 2018
On 2018-06-01, Paul Moore <p.f.moore at gmail.com> wrote:
> Python allows strings with embedded \0 characters, so it's possible
> to express that question in Python - os.path.exists('a\0b'). What
> can be expressed in terms of the low-level (C-based) operating
> system API shouldn't be relevant.
Python allows floating point numbers, so it is possible to express
this question in python: os.path.exists(3.14159). Is the fact that
the underlying OS/filesystem can't identify files via a floating point
number relevent? Should it return False or raise ValueError?
--
Grant Edwards grant.b.edwards Yow! How do I get HOME?
at
gmail.com
More information about the Python-list
mailing list