commit | 6fb3fdec7c3aa9cbda9176f88076e5bee4743834 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Aug 30 20:00:07 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Aug 30 20:00:07 2001 +0000 |
tree | a08d7c982c91ca3c1f41cf236a11facfddbe0bd1 | |
parent | 702ca4ffcb4630dad3aa2967618777e0f44a1e3c [diff] |
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.