mirror of
https://github.com/micropython/micropython.git
synced 2025-07-22 21:41:07 +02:00
11 lines
152 B
Python
11 lines
152 B
Python
# Test subclassing built-in str
|
|
|
|
class S(str):
|
|
pass
|
|
|
|
s = S('hello')
|
|
print(s == 'hello')
|
|
print('hello' == s)
|
|
print(s == 'Hello')
|
|
print('Hello' == s)
|