Author wdi2
Recipients wdi2
Date 2020-10-19.18:27:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603132025.42.0.432168177789.issue42083@roundup.psfhosted.org>
In-reply-to
Content
Calling PyStructSequence_NewType() with a NULL field in the desc.doc parameter (explicitly allowed as per docs) leads to a crash in 

Objects/typeobject.c:2956
2956                size_t len = strlen(old_doc)+1;

where old_doc is NULL.
If the doc string is set, the call succeeds, but with a warning

(stdin):1: DeprecationWarning: builtin type G_SGROUP has no __module__ attribute

(where G_SGROUP is my new type), which did not happen in 3.6, and which I do not think can be suppressed by function call arguments.
History
Date User Action Args
2020-10-19 18:27:05wdi2setrecipients: + wdi2
2020-10-19 18:27:05wdi2setmessageid: <1603132025.42.0.432168177789.issue42083@roundup.psfhosted.org>
2020-10-19 18:27:05wdi2linkissue42083 messages
2020-10-19 18:27:05wdi2create