In <a href="http://docs.python.org/py3k/tutorial/datastructures.html#comparing-sequences-and-other-types">http://docs.python.org/py3k/tutorial/datastructures.html#comparing-sequences-and-other-types</a>, <br><br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<span class="Apple-style-span" style="font-family: sans-serif; font-size: 16px; line-height: 20px; ">The operators <tt class="docutils literal" style="background-color: rgb(236, 240, 243); padding-top: 0px; padding-right: 1px; padding-bottom: 0px; padding-left: 1px; font-size: 0.95em; "><span class="pre">is</span></tt> and <tt class="docutils literal" style="background-color: rgb(236, 240, 243); padding-top: 0px; padding-right: 1px; padding-bottom: 0px; padding-left: 1px; font-size: 0.95em; "><span class="pre">is</span> <span class="pre">not</span></tt>compare whether two objects are really the same object;<br>
</span><span class="Apple-style-span" style="font-family: sans-serif; font-size: 16px; line-height: 20px; ">this only matters for mutable objects like lists.</span></blockquote><div><br><div>I think this notation may confuse readers of the tutorial. For example, pep8 recommands</div>
<div>using is operator for immutable singleton objects like None.</div><div><br></div><div>Shall we remove letter part?<br><div>-- <br>INADA Naoki  &lt;<a href="mailto:songofacandy@gmail.com">songofacandy@gmail.com</a>&gt;<br>
<br></div></div></div>