Skip to content

Commit b75ec08

Browse files
farhaanbukhshvstinner
authored andcommitted
bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)
The bytes parameter uses big endian.
1 parent 88cc339 commit b75ec08

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Doc/library/uuid.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ which relays any information about the UUID's safety, using this enumeration:
4545
.. class:: UUID(hex=None, bytes=None, bytes_le=None, fields=None, int=None, version=None, *, is_safe=SafeUUID.unknown)
4646

4747
Create a UUID from either a string of 32 hexadecimal digits, a string of 16
48-
bytes as the *bytes* argument, a string of 16 bytes in little-endian order as
49-
the *bytes_le* argument, a tuple of six integers (32-bit *time_low*, 16-bit
50-
*time_mid*, 16-bit *time_hi_version*, 8-bit *clock_seq_hi_variant*, 8-bit
51-
*clock_seq_low*, 48-bit *node*) as the *fields* argument, or a single 128-bit
52-
integer as the *int* argument. When a string of hex digits is given, curly
53-
braces, hyphens, and a URN prefix are all optional. For example, these
48+
bytes in big-endian order as the *bytes* argument, a string of 16 bytes in
49+
little-endian order as the *bytes_le* argument, a tuple of six integers
50+
(32-bit *time_low*, 16-bit *time_mid*, 16-bit *time_hi_version*,
51+
8-bit *clock_seq_hi_variant*, 8-bit *clock_seq_low*, 48-bit *node*) as the
52+
*fields* argument, or a single 128-bit integer as the *int* argument.
53+
When a string of hex digits is given, curly braces, hyphens,
54+
and a URN prefix are all optional. For example, these
5455
expressions all yield the same UUID::
5556

5657
UUID('{12345678-1234-5678-1234-567812345678}')

0 commit comments

Comments
 (0)