Common Python Idioms

Fredrik Lundh fredrik at pythonware.com
Thu Dec 7 08:59:56 EST 2006


Stephen Eilert wrote:

> I do think that, if it is faster, Python should translate
> "x.has_key(y)" to "y in x".

http://svn.python.org/view/sandbox/trunk/2to3/fix_has_key.py?view=markup

</F> 






More information about the Python-list mailing list