2021-01-10 11:00:14 +09:00
|
|
|
# Strings have a syntehesized __get__ so they can be indexed...
|
2021-01-04 23:33:43 +09:00
|
|
|
print("Test"[1])
|
2020-12-28 09:08:35 +09:00
|
|
|
|
|
|
|
class Test:
|
|
|
|
def __init__(self):
|
|
|
|
self.foo = "bar"
|
|
|
|
|
|
|
|
# Instances have a __class__ property synthesized by the VM
|
|
|
|
let test = Test()
|
2021-01-04 23:33:43 +09:00
|
|
|
print(test.__class__)
|
2020-12-28 09:17:00 +09:00
|
|
|
|
2021-01-04 23:33:43 +09:00
|
|
|
print((37.45).__int__())
|