Why exception from os.path.exists()?

Gregory Ewing greg.ewing at canterbury.ac.nz
Fri Jun 1 19:09:05 EDT 2018


Marko Rauhamaa wrote:
> Interestingly, you get a False even for existing files if you don't have
> permissions to access the file.

Obviously in that case, instead of True or False it should
return FileNotFound. :-)

https://thedailywtf.com/articles/What_Is_Truth_0x3f_

-- 
Greg



More information about the Python-list mailing list