[issue9961] Identity Crisis! variable assignment using strftime fails comparison test.

Jean-Paul Calderone report at bugs.python.org
Mon Sep 27 17:31:54 CEST 2010


Jean-Paul Calderone <invalid at example.invalid> added the comment:

You mistakenly used "is" for these comparisons, rather than "==".  The strftime involvement is a red herring.  The real problem is the use of an /identity/ comparison rather than an /equality/ comparison.

----------
nosy: +exarkun
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9961>
_______________________________________


More information about the Python-bugs-list mailing list