Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add comment
  • Loading branch information
koubaa committed Aug 21, 2020
commit f91e1ae3ae329db1f6c3dd128be6ca13ee920721
2 changes: 2 additions & 0 deletions Modules/_sha3/sha3module.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ static PyGetSetDef SHA3_getseters[] = {
{0,0} \
}

// Using PyType_GetModuleState() on these types is safe since
// it cannot be subclassed: it does not have the Py_TPFLAGS_BASETYPE flag.
Comment thread
koubaa marked this conversation as resolved.
Outdated
#define SHA3_TYPE_SPEC(type_spec_obj, type_name, type_slots) \
static PyType_Spec type_spec_obj = { \
.name = type_name, \
Comment thread
koubaa marked this conversation as resolved.
Outdated
Expand Down