Lichen

Annotated tests/mutual_import/B.py

837:8e119abbd91c
2018-07-03 Paul Boddie 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@2 1
from A import D, f
paul@2 2
paul@2 3
class C:
paul@2 4
    c = 1
paul@270 5
    def m(self):
paul@270 6
        return self.c
paul@2 7
paul@2 8
class E(D):
paul@2 9
    e = 2
paul@270 10
    def m(self):
paul@270 11
        return self.e
paul@2 12
paul@2 13
def g(x):
paul@2 14
    return f(x)