Spurious issue in CPython 2.7.5

thomas povtal.org thomas at povtal.org
Tue May 24 11:20:53 EDT 2016


   Hi!

   Thanks! That was a typo. I do '=='.

   The rest of the mail is ok (with the corrections from Chris)

   :) T

     Den 24. maj 2016 klokken 17:05 skrev Novocastrian_Nomad
     <gregory.j.baker at gmail.com>:

     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.
     --
     https://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list