Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7b9b3c commit 4befff9Copy full SHA for 4befff9
1 file changed
Modules/xxsubtype.c
@@ -240,8 +240,10 @@ initxxsubtype(void)
240
{
241
PyObject *m, *d;
242
243
- /* Fill in the deferred data addresses. This must be done before
244
- PyType_Ready() is called. */
+ /* Fill in deferred data addresses. This must be done before
+ PyType_Ready() is called. Note that PyType_Ready() automatically
245
+ initializes the ob.ob_type field to &PyType_Type if it's NULL,
246
+ so it's not necessary to fill in ob_type first. */
247
spamdict_type.tp_base = &PyDict_Type;
248
if (PyType_Ready(&spamdict_type) < 0)
249
return;
0 commit comments