Why does list have no 'get' method?

Carl Banks pavlovevidence at gmail.com
Fri Feb 8 13:15:48 EST 2008


On Feb 8, 3:38 am, cokofree... at gmail.com wrote:
> Can't you just make a subclass of Boolean and add methods to the true/
> false, or am i running up a tree with a cat?

I'm not sure what point you were trying to make, but no you can't
subclass bool in Python as it is now; certainly it wouldn't be
possible if Python treated bools according to my preference.

Carl Banks




More information about the Python-list mailing list