Staging
v0.5.1
https://github.com/python/cpython
Revision 6fb3fdec7c3aa9cbda9176f88076e5bee4743834 authored by Guido van Rossum on 30 August 2001, 20:00:07 UTC, committed by Guido van Rossum on 30 August 2001, 20:00:07 UTC
__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.
1 parent 702ca4f
History
Tip revision: 6fb3fdec7c3aa9cbda9176f88076e5bee4743834 authored by Guido van Rossum on 30 August 2001, 20:00:07 UTC
Pytype_GenericAlloc(): round up size so we zap all four bytes of the
Tip revision: 6fb3fde
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.1 KB
LICENSE -rw-r--r-- 12.0 KB
Makefile.pre.in -rw-r--r-- 25.4 KB
PLAN.txt -rw-r--r-- 18.2 KB
README -rw-r--r-- 38.1 KB
acconfig.h -rw-r--r-- 6.8 KB
configure -rwxr-xr-x 198.1 KB
configure.in -rw-r--r-- 47.0 KB
install-sh -rwxr-xr-x 5.5 KB
pyconfig.h.in -rw-r--r-- 18.3 KB
setup.py -rw-r--r-- 29.6 KB

README

back to top