Skip to content

0.5.0

Compare
Choose a tag to compare
@dargueta dargueta released this 22 Dec 06:41
· 229 commits to master since this release

Released: 2018-12-21

Features

Comparing a Struct instance to UNDEFINED is now True if and only if the
struct has all of its fields undefined. Previously a struct would never compare
equal to UNDEFINED.

Deprecations

Zigzag integer encoding support will be dropped in 0.6.0. It was an experimental
feature added when I was trying different variable-length integer formats. It's
highly specific to Protobuf and just doesn't seem useful to have here.

Breaking Changes

  • The endian and signed keyword arguments to VariableLengthInteger
    were deprecated in version 0.4.3 and have been removed.
  • The fill_missing argument to Struct.to_dict() was deprecated in version
    0.4.0 and has been removed.
  • Struct no longer behaves as a MutableMapping. All dictionary mixin
    methods have been removed. This was deprecated in 0.4.1. Several behaviors were
    broken by this change, namely that
    • dict(struct_instance) no longer works and will cause a TypeError.
      Use struct_instance.to_dict().
    • Dictionary expansion like **struct_instance will also no longer work. Use
      **struct_instance.to_dict().

Other Changes

Trivial fixes to documentation to fix broken links.