Changes between Version 49 and Version 50 of pyson


Ignore:
Timestamp:
06/15/21 15:49:44 (4 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pyson

    v49 v50  
    5555Primitive 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.
    5656
    57 The following primitives are recognised and handled separately:
    58 
    59 int, float, bool, str, complex, range, bytes, bytearray, datetime, URI, UUID, Decimal, dict, list
     57The following types are recognised and handled separately:
     58
     59NoneType, int, float, bool, str, complex, range, bytes, bytearray, datetime, URI, UUID, Decimal, dict, list
    6060
    6161The dict and list are treated even more special as we also support the List[TYPE] and Dict[KEYTYPE, VALUETYPE] types.