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 arhadthedev, erlendaasland, gdr@garethrees.org, lemburg, mark.dickinson, rhettinger, vstinner
Date 2021-11-30.23:46:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638315977.8.0.223340395468.issue45476@roundup.psfhosted.org>
In-reply-to
Content
I found 4 projects using "Py_TYPE(obj) = new_type;" in the PyPI top 5000:

mypy-0.910:

* mypyc/lib-rt/misc_ops.c: Py_TYPE(template_) = &PyType_Type;
* mypyc/lib-rt/misc_ops.c: Py_TYPE(t) = metaclass;

recordclass-0.16.3:

* lib/recordclass/_dataobject.c: Py_TYPE(op) = type;
* lib/recordclass/_dataobject.c: Py_TYPE(op) = type;
* lib/recordclass/_litetuple.c: //         Py_TYPE(ob) = &PyLiteTupleType_Type;

pysha3-1.0.2:

* Modules/_sha3/sha3module.c: Py_TYPE(type) = &PyType_Type;

datatable-1.0.0.tar.gz:

* src/core/python/namedtuple.cc: Py_TYPE(v) = type.v;
* src/core/python/tuple.cc: Py_TYPE(v_new) = v_type;
History
Date User Action Args
2021-11-30 23:46:17vstinnersetrecipients: + vstinner, lemburg, rhettinger, mark.dickinson, gdr@garethrees.org, erlendaasland, arhadthedev
2021-11-30 23:46:17vstinnersetmessageid: <1638315977.8.0.223340395468.issue45476@roundup.psfhosted.org>
2021-11-30 23:46:17vstinnerlinkissue45476 messages
2021-11-30 23:46:17vstinnercreate