On 11-06-18 13:59, Steven D'Aprano wrote: > On Mon, 11 Jun 2018 09:55:06 +0200, Antoon Pardon wrote: > >> On 11-06-18 02:28, Steven D'Aprano wrote: > [...] >>> open(foo) raises an exception if foo doesn't exist; >>> >>> os.path.exists(foo) returns False if foo doesn't exist. >> That is not correct. The path can exist and os.path.exists still return >> False. > It is correct. I made no claim about what happens if foo exists. I said > only that if it doesn't exist, the function returns False. > > If you're going to be pedantic, be *right*. Being pedantically wrong is > just sad.
I can live with that. -- Antoon. -- https://mail.python.org/mailman/listinfo/python-list