diff options
author | Guido van Rossum <guido@python.org> | 2001-08-30 20:00:07 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-30 20:00:07 +0000 |
commit | 6fb3fdec7c3aa9cbda9176f88076e5bee4743834 (patch) | |
tree | a08d7c982c91ca3c1f41cf236a11facfddbe0bd1 /Lib/compiler/pycodegen.py | |
parent | 702ca4ffcb4630dad3aa2967618777e0f44a1e3c (diff) | |
download | cpython-git-6fb3fdec7c3aa9cbda9176f88076e5bee4743834.tar.gz |
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.
Diffstat (limited to 'Lib/compiler/pycodegen.py')
0 files changed, 0 insertions, 0 deletions