4 ms·
This is Python. Subclass it and fix the problem, unless the guts are so opaque that your code would be littered with subclasses and you can't figure out an eleg
by swolchok 16y ago
This is Python. Subclass it and fix the problem, unless the guts are so opaque that your code would be littered with subclasses and you can't figure out an elegant, general way of fixing it (unlikely).
- tmsh 16y agoThis is Sparta. class SpartanList(list): def foot(self): return self[0] assert l.foot() return l.foot()