[New-bugs-announce] [issue38445] os.path.exists() takes bool as argument and returns True

Nika report at bugs.python.org
Fri Oct 11 07:16:42 EDT 2019


New submission from Nika <nika.boeblingen at mail.ru>:

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))

----------
messages: 354440
nosy: Nika
priority: normal
severity: normal
status: open
title: os.path.exists() takes bool as argument and returns True
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38445>
_______________________________________


More information about the New-bugs-announce mailing list