We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20abdf4 commit 8a4ae4cCopy full SHA for 8a4ae4c
1 file changed
Modules/_randommodule.c
@@ -639,6 +639,13 @@ _random_exec(PyObject *module)
639
if (state->Long___abs__ == NULL) {
640
return -1;
641
}
642
+
643
+ if (_PyImmutability_SetFreezable(module, _Py_FREEZABLE_NO) < 0
644
+ || _PyImmutability_SetFreezable(state->Random_Type, _Py_FREEZABLE_NO) < 0
645
+ ) {
646
+ return -1;
647
+ }
648
649
return 0;
650
651
0 commit comments