From 5a3cdfa7b1ee1ca893bca79be0cbb61802381568 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 27 Mar 2019 23:28:00 +0000 Subject: [PATCH] add comments --- src/add/singlepipe.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index c2afcbe3..4b61c4c5 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -238,6 +238,14 @@ def eq(o, i): the Record's field spec. Alternatively, an object with the same member names as the Record may be assigned: it does not have to *be* a Record. + + ArrayProxy is also special-cased, it's a bit messy: whilst ArrayProxy + has an eq function, the object being assigned to it (e.g. a python + object) might not. despite the *input* having an eq function, + that doesn't help us, because it's the *ArrayProxy* that's being + assigned to. so.... we cheat. use the ports() function of the + python object, enumerate them, find out the list of Signals that way, + and assign them. """ if not isinstance(o, Sequence): o, i = [o], [i] -- 2.30.2