GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — gh-94673: Ensure Builtin Static Types are Readied Properly by ericsnowcurrently · Pull Request #103940 · python/cpython Conversation
|
|
This causes a regression for some users of PyTypeObject MyType = { PyObject_HEAD_INIT(NULL) /* ... */ }; int MyType_Add(PyObject *m) { int err; PyObject *obj = PyLong_FromDouble(1.0); if (!obj) return -1; MyType.tp_dict = PyDict_New(); if (!type->tp_dict) { Py_DECREF(obj); return -1; } err = PyDict_SetItemString(MyType.tp_dict, "foo", obj); Py_DECREF(obj); if (err) return err; if (PyModule_AddType(m, &MyType)) return -1; return 0; } but now this will now segfault, as
with no mention of
As |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Workaround for [1]. [1] python/cpython#103940 Signed-off-by: Sean Anderson <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.