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