counter_groups and counter_groups.default for all CounterContainer objects?
At the moment counter_groups
and counter_groups.default
might exist in some counter containers,
but there is no guarantee and we have code like:
try:
X.counter_groups.default
except AttributeError:
...
Someone writing a new counter controller has no guidance from the interface that counter_groups
may exist, and then there is no rule to have default
.
So, should we make this more explicit ?
We could impose .counter_groups
and .counter_groups.default
, with .counter_groups.default
== .counters
by...default !