diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-06-04 10:18:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-04 10:18:22 -0700 |
| commit | 6a43d5f4fb3a83815bf7c2f157773a3b0d8f59b3 (patch) | |
| tree | 21f6d285d3832528c5e5a8373771bcc0f7f414b0 | |
| parent | 4251d2a3540bf7a23949c7fafad64b796585674a (diff) | |
| download | cpython-git-6a43d5f4fb3a83815bf7c2f157773a3b0d8f59b3.tar.gz | |
bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)
The bytes parameter uses big endian.
(cherry picked from commit b75ec0856771b51684b08c4e5068fbfad25c5e83)
Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
| -rw-r--r-- | Doc/library/uuid.rst | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Doc/library/uuid.rst b/Doc/library/uuid.rst index 6ac1ffb965..b3193d7440 100644 --- a/Doc/library/uuid.rst +++ b/Doc/library/uuid.rst @@ -23,12 +23,13 @@ random UUID. .. class:: UUID(hex=None, bytes=None, bytes_le=None, fields=None, int=None, version=None) Create a UUID from either a string of 32 hexadecimal digits, a string of 16 - bytes as the *bytes* argument, a string of 16 bytes in little-endian order as - the *bytes_le* argument, a tuple of six integers (32-bit *time_low*, 16-bit - *time_mid*, 16-bit *time_hi_version*, 8-bit *clock_seq_hi_variant*, 8-bit - *clock_seq_low*, 48-bit *node*) as the *fields* argument, or a single 128-bit - integer as the *int* argument. When a string of hex digits is given, curly - braces, hyphens, and a URN prefix are all optional. For example, these + bytes in big-endian order as the *bytes* argument, a string of 16 bytes in + little-endian order as the *bytes_le* argument, a tuple of six integers + (32-bit *time_low*, 16-bit *time_mid*, 16-bit *time_hi_version*, + 8-bit *clock_seq_hi_variant*, 8-bit *clock_seq_low*, 48-bit *node*) as the + *fields* argument, or a single 128-bit integer as the *int* argument. + When a string of hex digits is given, curly braces, hyphens, + and a URN prefix are all optional. For example, these expressions all yield the same UUID:: UUID('{12345678-1234-5678-1234-567812345678}') |
