python-varint
python-varint copied to clipboard
Should `varint.decode_bytes()` fail when not all bytes are consumed?
>>> varint.decode_bytes(b'\x8c\x01')
140
>>> varint.decode_bytes(b'\x8c\x01eee')
140
I'm not sure if that should raise exception, silently discard data (like it's now) or maybe return unparsed input?