Skip to content

Commit abae66d

Browse files
committed
Update doc string
1 parent fc853a3 commit abae66d

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎Lib/uuid.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class UUID:
211211
212212
is_safe An enum indicating whether the UUID has been generated in
213213
a way that is safe for multiprocessing applications, via
214-
uuid_generate_time_safe(3).
214+
uuid_generate_time_safe(3) or UuidCreateSequential().
215215
"""
216216

217217
__slots__ = ('int', 'is_safe', '__weakref__')
@@ -245,7 +245,8 @@ def __init__(self, hex=None, bytes=None, bytes_le=None, fields=None,
245245
246246
is_safe is an enum exposed as an attribute on the instance. It
247247
indicates whether the UUID has been generated in a way that is safe
248-
for multiprocessing applications, via uuid_generate_time_safe(3).
248+
for multiprocessing applications, via uuid_generate_time_safe(3) or
249+
UuidCreateSequential().
249250
"""
250251

251252
if [hex, bytes, bytes_le, fields, int].count(None) != 4:
@@ -757,7 +758,9 @@ def uuid1(node=None, clock_seq=None):
757758
"""Generate a UUID from a host ID, sequence number, and the current time.
758759
If 'node' is not given, getnode() is used to obtain the hardware
759760
address. If 'clock_seq' is given, it is used as the sequence number;
760-
otherwise a random 14-bit sequence number is chosen."""
761+
otherwise a random 14-bit sequence number is chosen. If neither is
762+
given and the platform provides a version-1 UUID generator, it is used
763+
instead."""
761764

762765
# When the system provides a version-1 UUID generator, use it.
763766
if node is clock_seq is None:

0 commit comments

Comments
 (0)