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)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 13:30:45 +0000 (13:30 +0000)
commitd3a3f25863ca7f97653ac9b94249f8496f22b6d1
tree6bd9ffad9155b1f7ecae6d0ed31f4c7495a65e4d
parentb304531da6b5bade6e13786bb9de972ea47321b0
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