This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author veky
Recipients fbidu, veky
Date 2020-10-18.21:44:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603057481.09.0.00130681546033.issue42060@roundup.psfhosted.org>
In-reply-to
Content
If I understand correctly, those are _private methods_ (names start with underscore). In such cases, asserts can be completely fine, since the library writer controls the situations where the method is called. If it is never called with _UNKNOWN argument, assert is just that, assertion that it is so. (It would be different if it were a public method, since the library writer doesn't know it will never be called with _UNKNOWN.)
History
Date User Action Args
2020-10-18 21:44:41vekysetrecipients: + veky, fbidu
2020-10-18 21:44:41vekysetmessageid: <1603057481.09.0.00130681546033.issue42060@roundup.psfhosted.org>
2020-10-18 21:44:41vekylinkissue42060 messages
2020-10-18 21:44:41vekycreate