Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #68185

Re: when to use == and when to use is

References <531DFFED.7070509@noaa.gov>
Date 2014-03-10 19:30 -0500
Subject Re: when to use == and when to use is
From Skip Montanaro <skip@pobox.com>
Newsgroups comp.lang.python
Message-ID <mailman.8030.1394497827.18130.python-list@python.org> (permalink)

Show all headers | View raw


I agree with Ben.

In this particular case, it seems you really should be using "=="
unless obj_0, obj_1, and obj_2 are sentinels.

Skip

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: when to use == and when to use is Skip Montanaro <skip@pobox.com> - 2014-03-10 19:30 -0500

csiph-web