[Doc-SIG] Does the "is" operator only matter for mutable object?

INADA Naoki songofacandy at gmail.com
Sat Mar 5 03:19:52 CET 2011


In
http://docs.python.org/py3k/tutorial/datastructures.html#comparing-sequences-and-other-types
,

The operators is and is notcompare whether two objects are really the same
> object;
> this only matters for mutable objects like lists.


I think this notation may confuse readers of the tutorial. For example, pep8
recommands
using is operator for immutable singleton objects like None.

Shall we remove letter part?
-- 
INADA Naoki  <songofacandy at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/doc-sig/attachments/20110305/ade04567/attachment.html>


More information about the Doc-SIG mailing list