Attention is currently required from: hampushellsberg. laforge 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/6384ecef_8e19aac2?usp=ema... : PS1, Line 35: asn1_v3
Yes: lru_cache runs the compile once, on the first call, and returns the same module after that. […] Ideally i would have something that looks like a variable at module level (or an instance variable, if esim.rsp was a class), but which would incur the runtime overhead at first access (like your function) instead of at module load time (like the existing approach). I'm not sure if there is any syntactic sugar in python that can be used for this?
-- 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: hampushellsberg <hampushellsberg@gmail.com> Gerrit-Comment-Date: Sat, 07 Nov 2026 11:12:29 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: hampushellsberg <hampushellsberg@gmail.com> Comment-In-Reply-To: laforge <laforge@osmocom.org>