diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-30 06:13:00 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-09-30 17:43:10 +0200 |
| commit | 9a622874419fac263c32f55786760a266a7f7f32 (patch) | |
| tree | 2e6747f7137163f986a41d10644833adb934259a /examples/eval_expr.py | |
| parent | d1b32ad7890b5f32aba4db5ef798877fd333d573 (diff) | |
Clean up dependency handling
- Menu/Comment._dep_expr and Symbol/Choice._menu_dep are really the
same thing internally in the C implementation (the dependency for the
"menu node", which is also used to implicitly create menus), and it
simplifies the code to treat them like that here too.
- Reuse the calculated _menu_dep (which has parent and 'depends on'
dependencies) when propagating dependencies to properties.
- Get rid of the temporary lists. It's now easy to use plain 'for'
loops to add the properties.
- Catch attempts to use select/imply from menus and choices early and
error out.
- Add comments clarifying which variables are only used when displaying
items.
Diffstat (limited to 'examples/eval_expr.py')
0 files changed, 0 insertions, 0 deletions
