New submission from mohamed koubaa <kouba...@gmail.com>:
The C-API documentation introduction contains an error: "Almost all Python objects live on the heap: you never declare an automatic or static variable of type :c:type:`PyObject`, only pointer variables of type :c:type:`PyObject*` can be declared. The sole exception are the type objects; since these must never be deallocated, they are typically static :c:type:`PyTypeObject` objects." With heap types, PyTypeObject can be deallocated. ---------- assignee: docs@python components: Documentation messages: 376926 nosy: docs@python, koubaa priority: normal pull_requests: 21308 severity: normal status: open title: C-API documentation type: behavior versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41790> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com