[New-bugs-announce] [issue41790] C-API documentation
mohamed koubaa
report at bugs.python.org
Mon Sep 14 23:15:13 EDT 2020
New submission from mohamed koubaa <koubaa.m at 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 at python
components: Documentation
messages: 376926
nosy: docs at python, koubaa
priority: normal
pull_requests: 21308
severity: normal
status: open
title: C-API documentation
type: behavior
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41790>
_______________________________________
More information about the New-bugs-announce
mailing list