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.

作者 serhiy.storchaka
收信人 benjamin.peterson, eric.smith, georg.brandl, larry, loewis, mark.dickinson, serhiy.storchaka
日期 2012-05-05.17:12:48
SpamBayes Score -1.0
Marked as misclassified
Message-id <1336238118.2345.37.camel@raxxla>
In-reply-to <1336234840.08.0.314625865379.issue14705@psf.upfronthosting.co.za>
内容
> That's not a reason to use 'P'.  Why you should use 'P' in the first place?

I just guided by the principle "Explicit is better than implicit".
Statements 'if' and 'while' I consider explicit and expect cast to bool.
Implicit cast to bool in the transfer of parameter causes discomfort (no
one (no one Pythonist) expects the implicit cast to str). Unfortunately,
for historical reasons, there is a lot of code, where the parameters are
casted to bool or int is used instead of bool. Therefore, we cannot
simply enter the restrictions.

Well, I was certainly wrong. Don't let me mislead you.

> Anyway, what lunatic would subclass bool?

Class bool cannot be subclassed further.
历史
日期 用户 动作 参数
2012-05-05 17:12:48serhiy.storchaka修改recipients: + serhiy.storchaka, loewis, georg.brandl, mark.dickinson, larry, eric.smith, benjamin.peterson
2012-05-05 17:12:48serhiy.storchaka链接issue14705 messages
2012-05-05 17:12:48serhiy.storchaka创建