Why does list have no 'get' method?

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Thu Feb 7 11:01:47 CET 2008


Steven D'Aprano:
> With the greatest respect, I think that if you think the second example
> "is more clear", you're completely bonkers. *grins*

No one is completely normal, I presume :-)
I'd like to know what others think about it, about this anti-feature.
What I can say is that other computer languages too think that boolean
operations must return boolean values only, so I am not alone in my
folly :-)

Bye,
bearophile



More information about the Python-list mailing list