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 jophine pranjal
Recipients jophine pranjal
Date 2018-09-19.06:33:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537338786.65.0.956365154283.issue34732@psf.upfronthosting.co.za>
In-reply-to
Content
When I validate the invalid uuid (RFC 4122 variant) for example '481a8de5-f0d1-f211-b425-e41f134196da'. It returns version number as 15 which is invalid. We need to retrun None in this case as we do for invalid UUIDs  based on RFC 4122.

------snip snip-------
from uuid import UUID
test_uuid_str = '481a8de5-f0d1-f211-b425-e41f134196da'
print("UUID version: {}".format(UUID(test_uuid_str).version))
print("UUID variant: {}".format(UUID(test_uuid_str).variant))
------snip snip-------

------Result----------
UUID version: 15
UUID variant: specified in RFC 4122
------Result----------
History
Date User Action Args
2018-09-19 06:33:06jophine pranjalsetrecipients: + jophine pranjal
2018-09-19 06:33:06jophine pranjalsetmessageid: <1537338786.65.0.956365154283.issue34732@psf.upfronthosting.co.za>
2018-09-19 06:33:06jophine pranjallinkissue34732 messages
2018-09-19 06:33:06jophine pranjalcreate