Why exception from os.path.exists()?
Antoon Pardon
antoon.pardon at vub.be
Mon Jun 11 06:26:37 EDT 2018
On 11-06-18 10:35, Marko Rauhamaa wrote:
> Antoon Pardon <antoon.pardon at vub.be>:
>> On 11-06-18 02:28, Steven D'Aprano wrote:
>>> The *whole point* of o.p.exists is to return False, not raise an
>>> exception.
>> And the price is that it will not always give the correct answer.
> Yes, but that's still the point of the function's existence.
I find it very strange that the point of a function is to sometimes give
incorrect
answers. I find it an annoying misnomer.
--
Antoon.
More information about the Python-list
mailing list