[issue34732] uuid returns version more than 5
Richard Neumann
report at bugs.python.org
Wed Sep 19 08:11:50 EDT 2018
Richard Neumann <mail at richard-neumann.de> added the comment:
@xtreak RFC 4122, section 4.1.3. specifies only versions 1 to 5.
For explicitely checking the version, there is already a test in UUID.__init__, raising a ValueError on not 1<= verision 1<=5.
I moved it to the bottom of __init__, i.e. after setting the "int" property, causing the test to run on the actual instance's property value.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34732>
_______________________________________
More information about the Python-bugs-list
mailing list