Author inada.naoki
Recipients Arfrever, Keith.Dart, Michael.Felt, aixtools@gmail.com, christian.heimes, eric.araujo, hynek, inada.naoki, kdart, knny-myer, martin.panter, nailor, nvetoshkin, orsenthil, pitrou, r.david.murray, serhiy.storchaka
Date 2017-09-28.09:27:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506590845.4.0.466225441844.issue11063@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2017-09-28 09:27:25inada.naokisetrecipients: + inada.naoki, 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:25inada.naokisetmessageid: <1506590845.4.0.466225441844.issue11063@psf.upfronthosting.co.za>
2017-09-28 09:27:25inada.naokilinkissue11063 messages
2017-09-28 09:27:25inada.naokicreate