BorgCounter¶
- class dictIO.utils.counter.BorgCounter¶
Bases:
object
A class that implements a static global counter.
Instances of this class all share the same global counter. This is used in DictReader class to ensure that multiple instances of SDict do not generate conflicting IDs for placeholder strings (as would be the case otherwise when merging included dicts).
- __init__() None ¶
Methods
Attributes
- static reset() None ¶
Reset the BorgCounter.
- Borg: ClassVar[dict[str, int]] = {'theCount': -1}¶