13 lines
270 B
Plaintext
13 lines
270 B
Plaintext
# Strings have a syntehesized __get__ so they can be indexed...
|
|
print("Test"[1])
|
|
|
|
class Test:
|
|
def __init__(self):
|
|
self.foo = "bar"
|
|
|
|
# Instances have a __class__ property synthesized by the VM
|
|
let test = Test()
|
|
print(test.__class__)
|
|
|
|
print((37.45).__int__())
|