Message 350806 - Python tracker

Message350806

Author mark.dickinson
Recipients mark.dickinson, tcaswell, terry.reedy
Date 2019-08-29.17:03:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567098197.73.0.190486062444.issue37980@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-08-29 17:03:17mark.dickinsonsetrecipients: + mark.dickinson, terry.reedy, tcaswell
2019-08-29 17:03:17mark.dickinsonsetmessageid: <1567098197.73.0.190486062444.issue37980@roundup.psfhosted.org>
2019-08-29 17:03:17mark.dickinsonlinkissue37980 messages
2019-08-29 17:03:17mark.dickinsoncreate