leonardt / pycoreir

Python bindings for coreir
BSD 3-Clause "New" or "Revised" License
10 stars 6 forks source link

Return empty dict instead of raising exception when trying to generator params on non generated module #112

Open leonardt opened 5 years ago

leonardt commented 5 years ago

Feature request by @cdonovick so there are less if statements in the code (can treat modules/generators the same when inspecting them when the code dispatches on the contents of the dict, rather than having to catch exceptions or use an if guard).