ubuiltins: Document id.

This commit is contained in:
Laurens Valk
2022-11-28 15:32:54 +01:00
parent 8a73e916e7
commit d1081229b3
+9 -1
View File
@@ -587,8 +587,16 @@ def hex(x: int) -> _str:
def id(object: Any) -> _int:
"""
Returns the “identity” of an object. This is an integer which is guaranteed
id(object) -> int
Gets the *identity* of an object. This is an integer which is guaranteed
to be unique and constant for this object during its lifetime.
Arguments:
object: Object of which to get the identifier.
Returns:
The identifier.
"""