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 serhiy.storchaka
Recipients benjamin.peterson, eric.smith, georg.brandl, larry, loewis, mark.dickinson, serhiy.storchaka
Date 2012-05-05.17:12:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336238118.2345.37.camel@raxxla>
In-reply-to <>
> 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.
Date User Action Args
2012-05-05 17:12:48serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, georg.brandl, mark.dickinson, larry, eric.smith, benjamin.peterson
2012-05-05 17:12:48serhiy.storchakalinkissue14705 messages
2012-05-05 17:12:48serhiy.storchakacreate