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


Groups > comp.lang.python > #68185 > unrolled thread

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

Started bySkip Montanaro <skip@pobox.com>
First post2014-03-10 19:30 -0500
Last post2014-03-10 19:30 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#68185 — Re: when to use == and when to use is

FromSkip Montanaro <skip@pobox.com>
Date2014-03-10 19:30 -0500
SubjectRe: when to use == and when to use is
Message-ID<mailman.8030.1394497827.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web