[Python-Dev] bool conversion wart?

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Feb 24 00:45:05 CET 2007


Martin v. Löwis wrote:

> One idiom that people use a lot is foo[b], where
> b is a boolean.

Could that be addressed using the new __index__ mechanism?

--
Greg


More information about the Python-Dev mailing list