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.

作者 veky
收信人 fbidu, veky
日期 2020-10-18.21:44:41
SpamBayes Score -1.0
Marked as misclassified
Message-id <1603057481.09.0.00130681546033.issue42060@roundup.psfhosted.org>
In-reply-to
内容
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.)
历史
日期 用户 动作 参数
2020-10-18 21:44:41veky修改recipients: + veky, fbidu
2020-10-18 21:44:41veky修改messageid: <1603057481.09.0.00130681546033.issue42060@roundup.psfhosted.org>
2020-10-18 21:44:41veky链接issue42060 messages
2020-10-18 21:44:41veky创建