Message303202
How often uuid1 is used?
I never use it and it looks uuid1 makes uuid.py complicated.
How about split it to _uuid1.py (or uuid/__init__.py and uuid/_uuid1.py)?
I hope PEP 562 is accepted.
It ease splitting out (heavy and slow and dirty) part into submodule without breaking backward compatibility.
Without PEP 562, easy way is making proxy function.
# uuid/__init__.py
def 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."""
from . import _uuid1
return _uuid1.uuid1() |
|
Date |
User |
Action |
Args |
2017-09-28 09:27:25 | methane | set | recipients:
+ methane, orsenthil, kdart, pitrou, christian.heimes, eric.araujo, Arfrever, r.david.murray, nvetoshkin, knny-myer, nailor, Keith.Dart, hynek, martin.panter, serhiy.storchaka, Michael.Felt, aixtools@gmail.com |
2017-09-28 09:27:25 | methane | set | messageid: <1506590845.4.0.466225441844.issue11063@psf.upfronthosting.co.za> |
2017-09-28 09:27:25 | methane | link | issue11063 messages |
2017-09-28 09:27:25 | methane | create | |
|