sqlstring -- a library to build a SELECT statement
Steven Bethard
steven.bethard at gmail.com
Thu Oct 20 01:05:22 EDT 2005
grunar at gmail.com wrote:
> Jason Stitt wrote:
>
>>Using // for 'in' looks really weird, too. It's too bad you can't
>>overload Python's 'in' operator. (Can you? It seems to be hard-coded
>>to iterate through an iterable and look for the value, rather than
>>calling a private method like some other builtins do.)
>
[snip]
>
> Python "in" clause doesn't seem exploitable in any way
Sure it is. Just override __contains__.
STeVe
More information about the Python-list
mailing list