Skip to content

Commit 99f11b4

Browse files
committed
Closes python#21124, python#28337: Call PyType_Ready on unpackiter_type.
Patch by Masayuki Yamamoto.
1 parent b740343 commit 99f11b4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Modules/_struct.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2301,6 +2301,9 @@ PyInit__struct(void)
23012301
if (PyType_Ready(&PyStructType) < 0)
23022302
return NULL;
23032303

2304+
if (PyType_Ready(&unpackiter_type) < 0)
2305+
return NULL;
2306+
23042307
/* Check endian and swap in faster functions */
23052308
{
23062309
const formatdef *native = native_table;

0 commit comments

Comments
 (0)