diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-12-31 20:08:53 +0300 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-12-31 20:08:53 +0300 |
commit | 5ecd13b3b3099546f6f974c334ec16a4eca79fa6 (patch) | |
tree | 7690ae5fa7bab133ba8e14e35d1ec484eac4d98f /Doc/library | |
parent | 092a8f002a76c0990feccc142af196834c33c3b8 (diff) | |
parent | ad26abba7cb612e4ff88b6d5cc02eb5249a7e0a7 (diff) | |
download | cpython-5ecd13b3b3099546f6f974c334ec16a4eca79fa6.tar.gz |
Issue #26267: Merge from 3.5
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/uuid.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/uuid.rst b/Doc/library/uuid.rst index 53cbd6c770..91dbca2edd 100644 --- a/Doc/library/uuid.rst +++ b/Doc/library/uuid.rst @@ -45,6 +45,13 @@ random UUID. variant and version number set according to RFC 4122, overriding bits in the given *hex*, *bytes*, *bytes_le*, *fields*, or *int*. + Comparison of UUID objects are made by way of comparing their + :attr:`UUID.int` attributes. Comparison with a non-UUID object + raises a :exc:`TypeError`. + + ``str(uuid)`` returns a string in the form + ``12345678-1234-5678-1234-567812345678`` where the 32 hexadecimal digits + represent the UUID. :class:`UUID` instances have these read-only attributes: |