Skip to content

0.4.0

Compare
Choose a tag to compare
@dargueta dargueta released this 22 Apr 01:52
· 256 commits to master since this release

Released: 2018-04-21

Bugfixes

  • Removed unused __computed_fields__ property from Struct 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 by UndefinedSizeError.

Other Changes

  • Start testing on Python 3.7.
  • Assigning directly to the __values__ dict in a Struct is deprecated,
    as it circumvents validators. __values__ will be removed in a future
    release.