Python23: cannot inherit from bool?

Dale Strickland-Clark dale at riverhall.NOTHANKS.co.uk
Thu Jan 16 05:01:04 EST 2003


Robin Becker <robin at jessikat.fsnet.co.uk> wrote:

>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.

At the risk of sounding dim: what's a leaf class?
--
Dale Strickland-Clark
Riverhall Systems Ltd




More information about the Python-list mailing list