[issue13203] Doc: say id() is only useful for existing objects

Raymond Hettinger report at bugs.python.org
Tue Oct 18 01:50:06 CEST 2011


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

I think this is over-explaining an implementation detail and it makes the docs for id() harder to understand.

Possibly there can be a FAQ entry about identity but the id() function itself is no place to go into the quirks of when new objects are created or destroyed.

Also, "getting confused" is often a step in the learning process -- it can't be taken out entirely.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13203>
_______________________________________


More information about the Python-bugs-list mailing list