Why exception from os.path.exists()?

Marko Rauhamaa marko at pacujo.net
Sun Jun 10 17:28:11 EDT 2018


Barry Scott <barry at barrys-emacs.org>:
> Singling out os.path.exists as a special case I do think is
> reasonable.

I don't think anyone has proposed that. While I brought up
os.path.exists() in my bug report, os.path.isfile(), os.path.isdir() etc
should obviously be addressed simultaneously. It may even be that the
fix needs to go to os.stat(). That's for the Python gods to decide.

> All functions that take paths need to have a consistent response to
> data that is impossible to pass to the OS.

Possibly.


Marko



More information about the Python-list mailing list