koc
public python v1 · immutabledef Afunction(f): def w(self, *x, **y): self.whatever = 1 f(self, *x, **y) return wdef Bfunction(f): def w(self, *x, **y): self.whatever = 1 f(self, *x, **y) return wclass C(object): @Afunction @Bfunction def __init__(self): ....