Title: Docs for uuid don't mention that uuid1 can repeat in some circumstances
Type: enhancement Stage:
Components: Documentation Versions: Python 3.6
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, merelymoray
Priority: normal Keywords:

Created on 2018-05-16 17:32 by merelymoray, last changed 2018-05-16 17:32 by merelymoray.

Messages (1)
msg316844 - (view) Author: merelymoray (merelymoray) Date: 2018-05-16 17:32

uuid.uuid1(node=None, clock_seq=None)

Generate a UUID from a host ID, sequence number, and the current time. If node is not given, getnode() is used to obtain the hardware address. If clock_seq is given, it is used as the sequence number; otherwise a random 14-bit sequence number is chosen.


This neglects to mention that if you call uuid1() in quick succession with no parameters, you can get a repeat uuid.

I had a bug because of this.

It would have been nice if the docs mentioned the fact directly. 

It's only a sentence to add, and would have saved a lot of time.
Date User Action Args
2018-05-16 17:32:45merelymoraycreate