@@ -103,28 +103,29 @@ which relays any information about the UUID's safety, using this enumeration:
103103 - Meaning
104104
105105 * - .. attribute:: UUID.time_low
106- - The first 32 bits of the UUID.
106+ - The first 32 bits of the UUID. Only relevant to version 1.
107107
108108 * - .. attribute:: UUID.time_mid
109- - The next 16 bits of the UUID.
109+ - The next 16 bits of the UUID. Only relevant to version 1.
110110
111111 * - .. attribute:: UUID.time_hi_version
112- - The next 16 bits of the UUID.
112+ - The next 16 bits of the UUID. Only relevant to version 1.
113113
114114 * - .. attribute:: UUID.clock_seq_hi_variant
115- - The next 8 bits of the UUID.
115+ - The next 8 bits of the UUID. Only relevant to versions 1 and 6.
116116
117117 * - .. attribute:: UUID.clock_seq_low
118- - The next 8 bits of the UUID.
118+ - The next 8 bits of the UUID. Only relevant to versions 1 and 6.
119119
120120 * - .. attribute:: UUID.node
121- - The last 48 bits of the UUID.
121+ - The last 48 bits of the UUID. Only relevant to version 1.
122122
123123 * - .. attribute:: UUID.time
124- - The 60-bit timestamp.
124+ - The 60-bit timestamp for version 1 and 6,
125+ or the 48-bit timestamp for version 7.
125126
126127 * - .. attribute:: UUID.clock_seq
127- - The 14-bit sequence number.
128+ - The 14-bit sequence number. Only relevant to versions 1 and 6.
128129
129130
130131.. attribute :: UUID.hex
@@ -377,6 +378,13 @@ The following options are accepted:
377378 The name used as part of generating the uuid. Only required for
378379 :func: `uuid3 ` / :func: `uuid5 ` functions.
379380
381+ .. option :: -C <num >
382+ --count <num>
383+
384+ Generate *num * fresh UUIDs.
385+
386+ .. versionadded :: next
387+
380388
381389.. _uuid-example :
382390
@@ -432,16 +440,18 @@ Here are some examples of typical usage of the :mod:`uuid` module::
432440Command-Line Example
433441--------------------
434442
435- Here are some examples of typical usage of the :mod: `uuid ` command line interface:
443+ Here are some examples of typical usage of the :mod: `uuid ` command- line interface:
436444
437445.. code-block :: shell
438446
439- # generate a random uuid - by default uuid4() is used
447+ # generate a random UUID - by default uuid4() is used
440448 $ python -m uuid
441449
442- # generate a uuid using uuid1()
450+ # generate a UUID using uuid1()
443451 $ python -m uuid -u uuid1
444452
445- # generate a uuid using uuid5
453+ # generate a UUID using uuid5
446454 $ python -m uuid -u uuid5 -n @url -N example.com
447455
456+ # generate 42 random UUIDs
457+ $ python -m uuid -C 42
0 commit comments