Attention is currently required from: laforge. hampushellsberg has posted comments on this change by hampushellsberg. ( https://gerrit.osmocom.org/c/pysim/+/44007?usp=email ) Change subject: esim/asn1: add the SGP.22 v3.1 RSPDefinitions module as rsp_v3 ...................................................................... Patch Set 1: (1 comment) File pySim/esim/rsp.py: https://gerrit.osmocom.org/c/pysim/+/44007/comment/a2919ce9_ea7370da?usp=ema... : PS1, Line 35: asn1_v3
Ideally i would have something that looks like a variable at module level (or an instance variable, […] There is: since Python 3.7 a module can define `__getattr__` (PEP 562), which Python only calls for names the module does not have. Done in patch set 2: `rsp.asn1_v3` now reads like `rsp.asn1`, the first access compiles the module and stores it as a global, so later accesses are a plain attribute lookup and importing pySim.esim.rsp costs the same as before. Patch set 2 also sits directly on master now that 44006 is abandoned, so the test file is created here.
-- To view, visit https://gerrit.osmocom.org/c/pysim/+/44007?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: I670ec73f9958882a8d3fe4b589bdafa3fbf702ea Gerrit-Change-Number: 44007 Gerrit-PatchSet: 1 Gerrit-Owner: hampushellsberg <hampushellsberg@gmail.com> Gerrit-CC: Jenkins Builder Gerrit-CC: laforge <laforge@osmocom.org> Gerrit-Attention: laforge <laforge@osmocom.org> Gerrit-Comment-Date: Fri, 20 Nov 2026 08:36:26 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: laforge <laforge@osmocom.org> Comment-In-Reply-To: hampushellsberg <hampushellsberg@gmail.com>