CFVariable.child

CFVariable.child(name, *args, other_parents=None, **kwargs)[source]

Return a new child variable with properties inherited from the current one. The resulting parent and child variables support basic grouping behavior, i.e. var.child('foo') in var returns True and iter(var) iterates over the variable and all of its descendents. Use the CFVariableRegistry.define interface to add child variables to the registry.

Parameters
  • name (str) – The child variable name.

  • other_parents (tuple of CFVariable, optional) – Additional parents. Variable information will not be copied from these variables, but this can be useful for the purpose of grouping behavior.

  • *args, **kwargs – Passed to CFVariable.update.