In a message of Sat, 05 Mar 2011 09:06:22 PST, Aahz writes:
>+1 -- here's my rewrite for a bit more clarity:
>
>The operators ``is`` and ``is not`` compare whether two objects are
>really the same object (have the same memory location).  Immutable
>objects with the same value and type may be cached to the same object for
>efficiency.  For example, ``'spam' is 'spam'`` is either ``True`` or
>``False`` depending on Python implementation.  Singleton objects
>(``True``, ``False``, ``None``) are always the same object.

I like Aahz's version.
Laura

_______________________________________________
Doc-SIG maillist  -  Doc-SIG@python.org
http://mail.python.org/mailman/listinfo/doc-sig

Reply via email to