hdl.ast: improve interaction of ValueCastable with custom __getattr__.
authorwhitequark <whitequark@whitequark.org>
Sun, 3 Oct 2021 20:28:07 +0000 (20:28 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 19:48:44 +0000 (19:48 +0000)
commit3fa9afcdd32dac6323f78ca96359b1c1fc4750fc
tree8f7abbb5cb3262345a1043fda6ea0411e7d98f86
parente96191be588cec4963c24ae6627871516be0e2f8
hdl.ast: improve interaction of ValueCastable with custom __getattr__.

Avoid calling `__getattr__("_ValueCastable__lowered_to")` when
a ValueCastable has custom `__getattr__` implementation; this avoids
the need for downstream code to be aware of this implementataion
detail.
nmigen/hdl/ast.py
tests/test_hdl_ast.py