Bug 512 - use m.submodules["...%d"] = mod instead of setattr
Summary: use m.submodules["...%d"] = mod instead of setattr
Status: CONFIRMED
Alias: None
Product: Libre-SOC's first SoC
Classification: Unclassified
Component: Source Code (show other bugs)
Version: unspecified
Hardware: PC Linux
: Low enhancement
Assignee: Luke Kenneth Casson Leighton
URL:
Depends on:
Blocks: 48 383
  Show dependency treegraph
 
Reported: 2020-10-06 13:14 BST by Luke Kenneth Casson Leighton
Modified: 2020-10-06 19:38 BST (History)
2 users (show)

See Also:
NLnet milestone: ---
total budget (EUR) for completion of task and all subtasks: 0
budget (EUR) for this task, excluding subtasks' budget: 0
parent task for budget allocation:
child tasks for budget allocation:
The table of payments (in EUR) for this task; TOML format:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Kenneth Casson Leighton 2020-10-06 13:14:43 BST
subject says it all
Comment 2 Jacob Lifshay 2020-10-06 19:38:19 BST
For that particular case, I'd pick:
m.submodules[f"dec_{v.fn_name}"] = v