[Python-ideas] Revised^4 PEP on yield-from
greg.ewing at canterbury.ac.nz
Wed Feb 25 11:39:45 CET 2009
Raymond Hettinger wrote:
> The hasattr() tests can be expensive for repeated throwers and senders.
> Any merit to caching the result of the test?
The expansion is a specification of the semantics, not
My current implementation does something like
_m = getattr(_i, 'throw', None)
and a further optimisation would be to cache the
More information about the Python-ideas