Greg Ewing schrieb:
>> One idiom that people use a lot is foo[b], where
>> b is a boolean.
> 
> Could that be addressed using the new __index__ mechanism?

That would be possible, yes.

Martin
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to