Skip to content

Improve kh.Rule Support #479

@popescu-v

Description

@popescu-v

Description

Some updates are needed in this respect:

  • drop Variable[Block].{set,get}_rule; set .rule to str(kh.Rule(...)) instead;
  • use str as Dictionary.add_variable_from_spec rule kwarg;
  • emphasize, in the kh.Rule docstring, that kh.Rule is a convenience object which is an alternative to string manipulations for complex rule creation, notably when rule operands are other rules or variables;
  • make sure the kh.Rule name is well-formed (i.e. UpperCamelCase_), i.e. the first positional arg for non-reference rules;
  • add some simple rule creation examples in the kh.Rule docstring.

Metadata

Metadata

Assignees

Labels

Priority/0-HighTo do nowSize/DaysSome days of workStatus/DoneThe issue has been addressed and merged to the dev branch
No fields configured for Feature.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions