15 lines
349 B
Plaintext
15 lines
349 B
Plaintext
# Strings have a syntehesized __get__
|
|
# which returns an integer value of the byte...
|
|
# This will probably codepoint of a UTF-32 string later?
|
|
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__())
|