For example, in the following program:
class MyTuple(tuple):
pass
MyTuple inherits from the builtin tuple, which is implemented in C.
What connects the tuple builtin with its C implementation? Where are the methods of a tuple object defined, so that we can figure out what the inherited methods of MyTuple are?
For example, in the following program:
MyTupleinherits from the builtintuple, which is implemented in C.What connects the
tuplebuiltin with its C implementation? Where are the methods of atupleobject defined, so that we can figure out what the inherited methods ofMyTupleare?