This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients methane, python-dev, serhiy.storchaka, vstinner
Date 2017-01-25.14:58:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485356325.44.0.217047793908.issue29369@psf.upfronthosting.co.za>
In-reply-to
Content
+    result = PyObject_CallFunction((PyObject*)&PyType_Type, "s(O){OOOO}",
+                    type, base,
+                    _PyUnicode_FromId(&PyId__fields), fnames,
+                    _PyUnicode_FromId(&PyId___module__),
+                    _PyUnicode_FromId(&PyId__ast));

You should check if _PyUnicode_FromId() returns NULL if it was the first call and the UTF-8 decode failed to allocate memory.

You might initialize all these identifiers (and check for errors) in init_types() to avoid having to check for errors each time they are used.
History
Date User Action Args
2017-01-25 14:58:45vstinnersetrecipients: + vstinner, methane, python-dev, serhiy.storchaka
2017-01-25 14:58:45vstinnersetmessageid: <1485356325.44.0.217047793908.issue29369@psf.upfronthosting.co.za>
2017-01-25 14:58:45vstinnerlinkissue29369 messages
2017-01-25 14:58:45vstinnercreate