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 josh.r
Recipients Cédric Cabessa, josh.r
Date 2019-04-30.15:32:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556638368.08.0.184900768125.issue36757@roundup.psfhosted.org>
In-reply-to
Content
The documentation does describe a fairly flexible parser. Perhaps it's a little too flexible on stuff like URN prefixes, but I don't think we could start enforcing a stricter class of hyphen separations without potentially breaking existing code.

Is there are reason your validator doesn't use uuid.UUID to normalize the value? That is, whatever the customer provides, why not use the result of stringifying the resulting UUID, rather than just convert to UUID to validate, then throwing it away? As long as the result is compatible with your sql connector, and logically equivalent to what the customer provided, that seems a valid solution.
History
Date User Action Args
2019-04-30 15:32:48josh.rsetrecipients: + josh.r, Cédric Cabessa
2019-04-30 15:32:48josh.rsetmessageid: <1556638368.08.0.184900768125.issue36757@roundup.psfhosted.org>
2019-04-30 15:32:48josh.rlinkissue36757 messages
2019-04-30 15:32:47josh.rcreate