Changes between Version 49 and Version 50 of pyson
- Timestamp:
- 06/15/21 15:49:44 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pyson
v49 v50 55 55 Primitive types are types that are built into Python and do not have the {{{__init__}}} function as we expect, for instance float, str. Therefore these need to be intercepted and handled through special constructors and serializers. 56 56 57 The following primitives are recognised and handled separately:58 59 int, float, bool, str, complex, range, bytes, bytearray, datetime, URI, UUID, Decimal, dict, list57 The following types are recognised and handled separately: 58 59 NoneType, int, float, bool, str, complex, range, bytes, bytearray, datetime, URI, UUID, Decimal, dict, list 60 60 61 61 The dict and list are treated even more special as we also support the List[TYPE] and Dict[KEYTYPE, VALUETYPE] types.