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