Skip to content

Commit f91e1ae

Browse files
committed
add comment
1 parent 1361dfd commit f91e1ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/_sha3/sha3module.c

+2
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,8 @@ static PyGetSetDef SHA3_getseters[] = {
512512
{0,0} \
513513
}
514514

515+
// Using PyType_GetModuleState() on these types is safe since
516+
// it cannot be subclassed: it does not have the Py_TPFLAGS_BASETYPE flag.
515517
#define SHA3_TYPE_SPEC(type_spec_obj, type_name, type_slots) \
516518
static PyType_Spec type_spec_obj = { \
517519
.name = type_name, \

0 commit comments

Comments
 (0)