Why exception from os.path.exists()?
Gregory Ewing
greg.ewing at canterbury.ac.nz
Fri Jun 1 19:37:27 EDT 2018
Grant Edwards wrote:
> 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?
I don't know about that, but it's clear that
os.path.exists(1j) shoud raise OnlyInYourDreamsError.
--
Greg
More information about the Python-list
mailing list