Mark Dickinson <dicki...@gmail.com> added the comment:

Closely related: #37427. I'm not sure why that issue was closed. My naive 
expectation would be that in most cases where an API specifies a flag, an 
arbitrary Python object can be used for that flag (and is then interpreted in 
boolean context). That's the natural behaviour that you get when handling flags 
in pure Python code.

Ex: 
https://github.com/python/cpython/blob/8ba8cc51a9899594f7fe66fe790973d83fd3d657/Lib/pathlib.py#L190

----------
nosy: +mark.dickinson, terry.reedy

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37980>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to