[openstack-dev] [ALL] Removing generate_uuid() from uuidutils
mark.washenberger at markwash.net
Wed Nov 13 17:35:29 UTC 2013
On Wed, Nov 13, 2013 at 8:02 AM, Julien Danjou <julien at danjou.info> wrote:
> On Wed, Nov 13 2013, John Griffith wrote:
> > Trivial or not, people use it and frankly I don't see any value at all
> > in removing it. As far as the "some projects want a different format
> > of UUID" that doesn't make a lot of sense to me but if that's what
> > somebody wants they should write their own method. I strongly agree
> > with others with respect to the comments around code-churn. I see
> > little value in this.
> The thing is that code in oslo-incubator is supposed to be graduated to
> standalone Python library.
> We see little value in a library providing a library for a helper doing
For the currently remaining function in uuidutils, is_uuid_like, could we
potentially just add this functionality to the standard library?
>>> uuid.UUID('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'.replace('-', ''))
>>> uuid.UUID('aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa'.replace('-', ''),
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
line 134, in __init__
raise ValueError('badly formed hexadecimal UUID string')
ValueError: badly formed hexadecimal UUID string
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.
> Julien Danjou
> /* Free Software hacker * independent consultant
> http://julien.danjou.info */
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev