<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 13, 2013 at 8:02 AM, Julien Danjou <span dir="ltr"><<a href="mailto:julien@danjou.info" target="_blank">julien@danjou.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Wed, Nov 13 2013, John Griffith wrote:<br>

<br>
> Trivial or not, people use it and frankly I don't see any value at all<br>
> in removing it.  As far as the "some projects want a different format<br>
> of UUID" that doesn't make a lot of sense to me but if that's what<br>
> somebody wants they should write their own method.  I strongly agree<br>
> with others with respect to the comments around code-churn.  I see<br>
> little value in this.<br>
<br>
</div>The thing is that code in oslo-incubator is supposed to be graduated to<br>
standalone Python library.<br>
<br>
We see little value in a library providing a library for a helper doing<br>
str(uuid.uuid4()).<br></blockquote><div><br></div><div>For the currently remaining function in uuidutils, is_uuid_like, could we potentially just add this functionality to the standard library?</div><div>Something like:</div>
<div><br></div><div><div>>>> uuid.UUID('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa')</div><div>UUID('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa')</div><div>>>> uuid.UUID('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'.replace('-', ''))</div>
<div>UUID('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa')</div><div>>>> uuid.UUID('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'.replace('-', ''), strict=True)</div><div>Traceback (most recent call last):</div>
<div>  File "<stdin>", line 1, in <module></div><div>  File "/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/uuid.py", line 134, in __init__</div><div>
    raise ValueError('badly formed hexadecimal UUID string')</div><div>ValueError: badly formed hexadecimal UUID string</div></div><div><br></div><div>I've had a few situations where UUID's liberal treatment of what it consumes has seemed a bit excessive, anyway. Not sure if this approach is a bit too naive, however.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888"><br>
--<br>
Julien Danjou<br>
/* Free Software hacker * independent consultant<br>
   <a href="http://julien.danjou.info" target="_blank">http://julien.danjou.info</a> */<br>
</font></span><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div>