summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-12-31 17:08:53 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-12-31 17:08:53 (GMT)
commit9db22dd968c043beb9abc6233360336018da5249 (patch)
treead7a498c8b6678f77e17dffd7db819ed3253818b /Doc/library
parent53a21eb479a795e4f2902d715b724e89ccf641e6 (diff)
parent6b5e4a86a7f53bcdc565d1eb6d88c17d16b64a2f (diff)
downloadcpython-9db22dd968c043beb9abc6233360336018da5249.zip
cpython-9db22dd968c043beb9abc6233360336018da5249.tar.gz
cpython-9db22dd968c043beb9abc6233360336018da5249.tar.bz2
Issue #26267: Merge from 3.5
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/uuid.rst7
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: