diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-12-31 17:09:14 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-12-31 17:09:14 (GMT) |
commit | 81b64ff01b0f909dd379dc98229937eec9f17891 (patch) | |
tree | e3be8a045fb10ef31c24e051aaec991e9cc917ba /Doc/library | |
parent | d489ac91020efcf7b76a9fed0a44891c334ba67e (diff) | |
parent | 9db22dd968c043beb9abc6233360336018da5249 (diff) | |
download | cpython-81b64ff01b0f909dd379dc98229937eec9f17891.zip cpython-81b64ff01b0f909dd379dc98229937eec9f17891.tar.gz cpython-81b64ff01b0f909dd379dc98229937eec9f17891.tar.bz2 |
Issue #26267: Merge from 3.6
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 53cbd6c..91dbca2 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: |