From 0e0bc4e221f592f305d335faf5f8046484eb9238 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 10 Sep 2018 18:46:08 +0200 Subject: 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. --- Objects/namespaceobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objects/namespaceobject.c') 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 */ -- cgit v1.2.3-65-gdbad