aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2018-09-10 18:46:08 +0200
committerBenjamin Peterson <benjamin@python.org>2018-09-10 09:46:08 -0700
commit0e0bc4e221f592f305d335faf5f8046484eb9238 (patch)
treeedd0715556a68ab5bd9037a2a627bb8a62d9ef6a /Objects/namespaceobject.c
parentbpo-34588: Fix an off-by-one error in traceback formatting. (GH-9077) (diff)
downloadcpython-0e0bc4e221f592f305d335faf5f8046484eb9238.tar.gz
cpython-0e0bc4e221f592f305d335faf5f8046484eb9238.tar.bz2
cpython-0e0bc4e221f592f305d335faf5f8046484eb9238.zip
Fix misleading mentions of tp_size in comments (GH-9093)
Many type object initializations labeled a field "tp_size" in the comment, but the name of that field is tp_basicsize.
Diffstat (limited to 'Objects/namespaceobject.c')
-rw-r--r--Objects/namespaceobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/namespaceobject.c b/Objects/namespaceobject.c
index a6c941afc0a..0b902693849 100644
--- a/Objects/namespaceobject.c
+++ b/Objects/namespaceobject.c
@@ -201,7 +201,7 @@ SimpleNamespace(**kwargs)");
PyTypeObject _PyNamespace_Type = {
PyVarObject_HEAD_INIT(&PyType_Type, 0)
"types.SimpleNamespace", /* tp_name */
- sizeof(_PyNamespaceObject), /* tp_size */
+ sizeof(_PyNamespaceObject), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)namespace_dealloc, /* tp_dealloc */
0, /* tp_print */