Spurious issue in CPython 2.7.5
thomas povtal.org
thomas at povtal.org
Tue May 24 06:22:30 EDT 2016
Hi,
Please excuse me if this is not the right place, but I have some issues
with CPython on a NUMA machine.
1: I get "RuntimeWarning: tp_compare didn't return -1 or -2 for
exception". It's a line like:
"if Foo = False:" where Foo is a global variable (global Foo).
Now, I've searched somewhat on google for indications on when this warning
can be seen. However, I haven't really been able to understand why and
even if it's significant or not. (At face value I'm nervous the Python
runtime environment is corrupted for that process).
2: In my process later on I get: "OverflowError: long too big to convert".
This happens in different places and seems to always relate to obtaining
a length of something (dict or list created by list comprehension). Fx
"for i in xrange(0, len_of_stuff, max_section_size):"
en_of_stuff is always less than the max long (around 600).
We're using gevent and I'm suspecting some "threading" could cause this,
as I'm able to replicate it locally with the same data.
Kind regards,
Thomas
More information about the Python-list
mailing list