Working with SPL types

Most core SPL types are supported by mapping to a native Python type.

The following mappings apply:

SPL type Python type
boolean bool
enum Not supported
int8 int
int16 int
int32 int
int64 int
uint8 int
uint16 int
uint32 int
uint64 int
float32 double
float64 double
decimal32 decimal
decimal64 decimal
decimal128 decimal
complex32 complex
complex64 complex
timestamp streams.timestamp
rstring string
ustring Not supported
rstring[n] Not supported
blob Blob
xml bytes
list<T> tuple of elements of type T
bounded list type Not supported
set<T> setof elements of type T
bounded set type Not supported
map<K,V> dictof indexes K and values V
bounded map type Not supported
tuple<T name, ...> dict with indexes name,
optional<T> None if missing, T otherwise