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

2018-01-07 Thread Steven D'Aprano
Steven D'Aprano 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

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

2018-01-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: That is nearly two hundred lines of quite complex code. What results are you expecting and what results are you getting? I've just tried running it under Python 3.3 and 3.5 on a RedHat-based Linux, and after generating a large

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

2018-01-07 Thread Thermi
New submission from Thermi : With Python 3.6.4 on Arch Linux, on three different hosts (one Skylake CPU, one i7-3820, one Xeon E5-2680, all running Arch Linux with the same Python version), the Python 3 interpreter behaves erratically in a script