2018-07-03 | Paul Boddie | file changeset files shortlog | Take advantage of context testing when acquiring functions for invocation. Since a context whose nature has been determined will have been tested, either as a consequence of deduction or at run-time, use of __get_function (which tests the context again) is unnecessary. |
paul@40 | 1 | def f(): |
paul@266 | 2 | return StopIteration |
paul@266 | 3 | |
paul@315 | 4 | print f() # __builtins__.exception.base.StopIteration |