From 8b32c8270d006cf1b74c68059f3ccceedd4806c0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 9 Oct 2021 15:21:20 +0800 Subject: [PATCH] nac3artiq: explain delayed registration --- nac3artiq/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index fb829af6..37daac50 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -286,6 +286,7 @@ impl Nac3 { } fn register_module(&mut self, obj: PyObject) { + // Delay registration until all referenced variables are supposed to exist on the CPython side self.to_be_registered.push(obj); }