Files
RustPython/tests/basic_types.py
2018-07-07 14:00:30 +02:00

17 lines
401 B
Python

# Spec: https://docs.python.org/2/library/types.html
print(None)
# TypeType
# print(True) # LOAD_NAME???
print(1)
# print(1L) # Long
print(1.1)
# ComplexType
print("abc")
print(u"abc")
# Structural below
# print((1, 2)) # Tuple can be any length, but fixed after declared
# x = (1,2)
# print(x[0]) # Tuple can be any length, but fixed after declared
# print([1, 2, 3])
# print({"first":1,"second":2})