This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author merelymoray
Recipients docs@python, merelymoray
Date 2018-05-16.17:32:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526491965.86.0.682650639539.issue33545@psf.upfronthosting.co.za>
In-reply-to
Content
https://docs.python.org/3.6/library/uuid.html#uuid.UUID

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.
History
Date User Action Args
2018-05-16 17:32:45merelymoraysetrecipients: + merelymoray, docs@python
2018-05-16 17:32:45merelymoraysetmessageid: <1526491965.86.0.682650639539.issue33545@psf.upfronthosting.co.za>
2018-05-16 17:32:45merelymoraylinkissue33545 messages
2018-05-16 17:32:45merelymoraycreate