0.4.0
Released: 2018-04-21
Bugfixes
- Removed unused
__computed_fields__
property fromStruct
classes. It was
accidentally left in. - Fixed WAV file generation in the examples. It was writing the frequency of the
wave to the file, not the amplitude. - Miscellaneous tweaks and typo corrections in documentation.
Features
Added support for adding validators on fields, both as methods in their Struct
and passed in to the constructor. You can also have validator methods that
validate the entire Struct
just after loading or just before dumping.
Breaking Changes
- Dropped support for Python 3.3, which has been deprecated. Please upgrade to a
newer version of Python. VariableSizedFieldError
was deprecated in 0.3.1. It has been removed and
completely replaced byUndefinedSizeError
.
Other Changes
- Start testing on Python 3.7.
- Assigning directly to the
__values__
dict in aStruct
is deprecated,
as it circumvents validators.__values__
will be removed in a future
release.