mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-07-28 04:07:46 +00:00
ubuiltins: Document id.
This commit is contained in:
@@ -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.
|
||||
"""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user