Spurious issue in CPython 2.7.5
Novocastrian_Nomad
gregory.j.baker at gmail.com
Tue May 24 11:05:35 EDT 2016
On Tuesday, May 24, 2016 at 5:47:55 AM UTC-6, thomas povtal.org wrote:
...
> 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).
...
Are you really using "if Foo = False:"?
If so, it should be "if Foo == False:"
"==" for equivalence rather than "=" for assignment.
More information about the Python-list
mailing list