tracer: fix get_var_name() to work on toplevel attributes.
authorwhitequark <whitequark@whitequark.org>
Mon, 4 May 2020 05:51:08 +0000 (05:51 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 17 May 2020 19:51:58 +0000 (19:51 +0000)
commit393c27ac8ece9a918c860693e7c495f91ab24bf2
treef9f94f6b7f883e6c343ab30e1bb99ec56fe3f0e3
parente301798ceefff8ed319bb7c948f6564f56737fb5
tracer: fix get_var_name() to work on toplevel attributes.

E.g. this now works:

    >>> class dummy: pass
    >>> self = dummy()
    >>> self.foo = Signal()
    >>> self.foo.name
    'foo'
nmigen/tracer.py