Re: [Python-Dev] PEP 463: Exception-catching expressions

2014年2月22日 02:31:07 -0800

Antoine Pitrou writes:
 > Well, the only way to know that a key (or attribute) exists is to do
 > the lookup. What else would you suggest?
Do the lookup at the C level (or whatever the implementation language
is) and generate no exception, of course. That's what would make it
possibly more efficient.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to