You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
170 B
10 lines
170 B
11 years ago
|
# Test calling non-special method inherited from native type
|
||
|
|
||
|
class mytuple(tuple):
|
||
|
pass
|
||
|
|
||
|
t = mytuple((1, 2, 3))
|
||
|
print(t)
|
||
|
print(t == (1, 2, 3))
|
||
|
print((1, 2, 3) == t)
|