2018-07-03 | Paul Boddie | file changeset files shortlog | Introduced a class (unpackable) and method (__get_single_item_unchecked__) to support sequence unpacking without index checking overhead, since the translator emits a test for the length of each sequence and controls the actual index values used. | tuple-optimisations |
paul@40 | 1 | def f(): |
paul@266 | 2 | return StopIteration |
paul@266 | 3 | |
paul@315 | 4 | print f() # __builtins__.exception.base.StopIteration |