Antoine Pitrou added the comment:
I'm worried about the runtime cost of this. Code like this is an extremely
common idiom and should remain fast:
try:
x = d[key]
except KeyError:
# do something else
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12029>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com