7 lines
86 B
Python
7 lines
86 B
Python
|
# subscripting a subclassed tuple
|
||
|
class Foo(tuple):
|
||
|
pass
|
||
|
|
||
|
foo = Foo((1,2))
|
||
|
foo[0]
|