[issue32510] Broken comparisons (probably caused by wrong caching of values)

Steven D'Aprano report at bugs.python.org
Sun Jan 7 10:24:03 EST 2018


Steven D'Aprano <steve+python at pearwood.info> added the comment:

Oh, by the way... are you aware that the Recursor class defines a class attribute `branches` which is shared by all instances? You create multiple recursor objects, but they all share the same `branches` attribute. That might be intentional, but if not, that might explain the unexpected behaviour you are seeing.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32510>
_______________________________________


More information about the Python-bugs-list mailing list