Repository navigation
v0.3.1
🔄 Changed
serialize_valueserializes anEnummember by its value. Aclass Kind(int, Enum)member rendered as'Kind.A', because anEnummixin formats throughEnum.__str__since Python 3.11, and a plainEnumholding adatetimeor aUUIDraisedNotImplementedError; both now render as their value would. A(str, Enum)member already worked and keeps working.bytesandbytearraygo toserialize_other_object, like any other type missing from the serialization table. They are collections of ints, so they used to render as(222, 173), a valid-looking literal with the wrong meaning. Overrideserialize_other_objectto render them for your dialect.- Requires
ddutils >= 0.3.0, < 0.4.0.
Full Changelog: v0.3.0...v0.3.1