0.5.0
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
andsigned
keyword arguments toVariableLengthInteger
were deprecated in version 0.4.3 and have been removed. - The
fill_missing
argument toStruct.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 thatdict(struct_instance)
no longer works and will cause aTypeError
.
Usestruct_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.