File: consistencychecks.rst

package info (click to toggle)
anytree 2.12.1-3.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 872 kB
  • sloc: python: 4,044; makefile: 12
file content (13 lines) | stat: -rw-r--r-- 414 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
Consistency Checks vs. Speed
============================

Anytree can run some *costly* internal consistency checks.
With version 2.9.1 these got disabled by default.
In case of any concerns about the internal data consistency or just for safety, either

* set the environment variable ``ANYTREE_ASSERTIONS=1``, or
* add the following lines to your code:

>>> import anytree
>>> anytree.config.ASSERTIONS = True