Message 354440 - Python tracker (original) (raw)
os.path.exists() accepts either True or False as argument and returns True. Reproducible on Windows, e. g., in jupyter notebook or in Eclipse, although not in IDLE, which returns False, as expected.
import os print(os.path.exists(False))