sim._pycoro: make src_loc() more robust.
authorwhitequark <whitequark@whitequark.org>
Thu, 27 Aug 2020 07:11:14 +0000 (07:11 +0000)
committerwhitequark <whitequark@whitequark.org>
Thu, 27 Aug 2020 07:11:14 +0000 (07:11 +0000)
commitc00219d9f3bd76f406ffa3cacb9768a1468b1452
tree368d3a5dd22347d15fc53231ff5be1da5221ba8b
parent141eaf0e405ad009e276d5c3d22edde6f8ac8e22
sim._pycoro: make src_loc() more robust.

  * Guard for finished coroutines.
  * Guard for coroutines yielding from iterators and not generators.
nmigen/sim/_pycoro.py