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 Cédric Cabessa
Recipients Cédric Cabessa, josh.r
Date 2019-05-01.17:24:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556731496.72.0.00434072774902.issue36757@roundup.psfhosted.org>
In-reply-to
Content
> 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

Yes, this is exactly what we do now

However this behaviour is a bit surprising, we were thinking that uuid.UUID could be used as a validator

I understand the risk of breaking existing code with a fix that enforce a strict form.

Maybe a line should be added in the documentation to prevent people using this as a validator without more check?

But ok, you can close the bug if you prefer ... I think there no perfect solution :-)
History
Date User Action Args
2019-05-01 17:24:56Cédric Cabessasetrecipients: + Cédric Cabessa, josh.r
2019-05-01 17:24:56Cédric Cabessasetmessageid: <1556731496.72.0.00434072774902.issue36757@roundup.psfhosted.org>
2019-05-01 17:24:56Cédric Cabessalinkissue36757 messages
2019-05-01 17:24:56Cédric Cabessacreate