0
0
mirror of https://github.com/python/cpython.git synced 2024-11-30 18:51:15 +01:00

Make it clear that id() can return either a long integer or a plain integer.

This commit is contained in:
Fred Drake 2000-06-29 03:46:46 +00:00
parent 0f353ed90d
commit 8aa3bd9098

View File

@ -302,11 +302,11 @@ module from which it is called).
\end{funcdesc}
\begin{funcdesc}{id}{object}
Return the `identity' of an object. This is an integer which is
guaranteed to be unique and constant for this object during its
lifetime. (Two objects whose lifetimes are disjunct may have the
same \function{id()} value.) (Implementation note: this is the
address of the object.)
Return the `identity' of an object. This is an integer (or long
integer) which is guaranteed to be unique and constant for this
object during its lifetime. Two objects whose lifetimes are
disjunct may have the same \function{id()} value. (Implementation
note: this is the address of the object.)
\end{funcdesc}
\begin{funcdesc}{input}{\optional{prompt}}