Python23: cannot inherit from bool?

Robin Becker robin at jessikat.fsnet.co.uk
Wed Jan 15 14:28:16 CET 2003


In article <b03kr8$lbili$1 at ID-71831.news.dfncis.de>, James Kew
<james.kew at btinternet.com> writes
>FrankS wrote:
>> It seems that 2.3 doesn't allow you to inherit from bool:
>
>I'm not qualified to comment on why it's not allowed, but out of interest:
>why might you want to inherit from bool?
>
.... don't know the answer to that one, but is the non inheritance
property available to ordinary python if yes we could create leaf
classes.
-- 
Robin Becker




More information about the Python-list mailing list