This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mike Vertolli
Recipients Mike Vertolli, docs@python
Date 2016-03-08.15:39:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457451562.01.0.849547274402.issue26511@psf.upfronthosting.co.za>
In-reply-to
Content
Here's the doc: https://docs.python.org/2/reference/expressions.html#is

It would be great if this line:
"The operators is and is not test for object identity: x is y is true if and only if x and y are the same object. x is not y yields the inverse truth value.[7]"

Could link to the id() builtin doc:
https://docs.python.org/2/library/functions.html#id

One way to rephrase this could be:
"The operators is and is not test for object identity: x is y is true if and only if x and y are the same object or id(x) == id(y). x is not y yields the inverse truth value.[7]"

And, the id's can be hyperlinks.

It would also be nice if that reference linked to a page on integer caching in Python.
History
Date User Action Args
2016-03-08 15:39:22Mike Vertollisetrecipients: + Mike Vertolli, docs@python
2016-03-08 15:39:22Mike Vertollisetmessageid: <1457451562.01.0.849547274402.issue26511@psf.upfronthosting.co.za>
2016-03-08 15:39:21Mike Vertollilinkissue26511 messages
2016-03-08 15:39:21Mike Vertollicreate