docs/tricks/consistencychecks.rst
raw| 1 | Consistency Checks vs. Speed |
| 2 | ============================ |
| 3 | |
| 4 | Anytree can run some *costly* internal consistency checks. |
| 5 | With version 2.9.1 these got disabled by default. |
| 6 | In case of any concerns about the internal data consistency or just for safety, either |
| 7 | |
| 8 | * set the environment variable ``ANYTREE_ASSERTIONS=1``, or |
| 9 | * add the following lines to your code: |
| 10 | |
| 11 | >>> import anytree |
| 12 | >>> anytree.config.ASSERTIONS = True |