2020-12-28 03:08:35 +03:00
|
|
|
# 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__
|
2020-12-28 03:17:00 +03:00
|
|
|
|
2020-12-29 10:40:42 +03:00
|
|
|
print (37.45).__int__()
|