[XS] Change in ...pyosmocom[master]: Allow caller to pass total_len in context of osmocom.construct.build_...
Attention is currently required from: laforge. dexter has posted comments on this change by laforge. ( https://gerrit.osmocom.org/c/python/pyosmocom/+/38187?usp=email ) Change subject: Allow caller to pass total_len in context of osmocom.construct.build_construct ...................................................................... Patch Set 1: Code-Review+1 (1 comment) File src/osmocom/construct.py: https://gerrit.osmocom.org/c/python/pyosmocom/+/38187/comment/4c2ee6ed_97428... : PS1, Line 496: return c.build(decoded_data, **context) This is probably the safest way in terms of API stability. I solved it with an extra parameter to make it look more uniform to parse_construct: def build_construct(c, decoded_data, length: typing.Optional[int] = None, context: dict = {}): -- To view, visit https://gerrit.osmocom.org/c/python/pyosmocom/+/38187?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: python/pyosmocom Gerrit-Branch: master Gerrit-Change-Id: I7c4eab60274bcb0dd95e7bc21867a37ad70e4fc0 Gerrit-Change-Number: 38187 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge@osmocom.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: dexter <pmaier@sysmocom.de> Gerrit-Attention: laforge <laforge@osmocom.org> Gerrit-Comment-Date: Tue, 17 Sep 2024 13:29:36 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes
participants (1)
-
dexter