Browse Source
we rely, perhaps a bit hackily, on there only being one copy of each type object floating about. using `deepcopy` on a Message for message extensions destroys this paradigm, which breaks things in the case where it's a later defined subtype that contains variable-length members. to fix this, we modify `__deepcopy__` on the Field class, such that it preserves the reference to the original type_obj instance.pull/2938/head
lisa neigut
6 years ago
committed by
Rusty Russell
2 changed files with 11 additions and 0 deletions
Loading…
Reference in new issue