We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f76612 commit 5496c4fCopy full SHA for 5496c4f
Modules/_uuidmodule.c
@@ -1534,7 +1534,13 @@ static PyType_Slot Uuid_slots[] = {
1534
1535
1536
static PyType_Spec Uuid_spec = {
1537
+ // We use "uuid.UUID" here and not "_uuid.UUID" to have full
1538
+ // compatibility with old pickled UUIDs. There's no workaround
1539
+ // if we want both to produce compatible pickles that can be read
1540
+ // by older Pythons (using ancient pickle protocol verions) and
1541
+ // restore from pickles produced by old Python versions.
1542
.name = "uuid.UUID",
1543
+
1544
.basicsize = sizeof(uuidobject),
1545
.flags = (
1546
Py_TPFLAGS_DEFAULT
0 commit comments