Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abb51fe

Browse files
committed
add comment
1 parent 0be5d6c commit abb51fe

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Modules/_blake2/blake2b_impl.c

+2
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ static PyType_Slot blake2b_type_slots[] = {
407407
{0,0}
408408
};
409409

410+
// Using PyType_GetModuleState() on this type is safe since
411+
// it cannot be subclassed: it does not have the Py_TPFLAGS_BASETYPE flag.
410412
PyType_Spec blake2b_type_spec = {
411413
.name = "_blake2.blake2b",
412414
.basicsize = sizeof(BLAKE2bObject),

Modules/_blake2/blake2s_impl.c

+2
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,8 @@ static PyType_Slot blake2s_type_slots[] = {
406406
{0,0}
407407
};
408408

409+
// Using PyType_GetModuleState() on this type is safe since
410+
// it cannot be subclassed: it does not have the Py_TPFLAGS_BASETYPE flag.
409411
PyType_Spec blake2s_type_spec = {
410412
.name = "_blake2.blake2s",
411413
.basicsize = sizeof(BLAKE2sObject),

0 commit comments

Comments
 (0)