]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Pytype_GenericAlloc(): round up size so we zap all four bytes of the
authorGuido van Rossum <guido@python.org>
Thu, 30 Aug 2001 20:00:07 +0000 (20:00 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 30 Aug 2001 20:00:07 +0000 (20:00 +0000)
commit6fb3fdec7c3aa9cbda9176f88076e5bee4743834
treea08d7c982c91ca3c1f41cf236a11facfddbe0bd1
parent702ca4ffcb4630dad3aa2967618777e0f44a1e3c
Pytype_GenericAlloc(): round up size so we zap all four bytes of the
__dict__ slot for string subtypes.

subtype_dealloc(): properly use _PyObject_GetDictPtr() to get the
(potentially negative) dict offset.  Don't copy things into local
variables that are used only once.

type_new(): properly calculate a negative dict offset when tp_itemsize
is nonzero.  The __dict__ attribute, if present, is now a calculated
attribute rather than a structure member.
Objects/typeobject.c