Staging
v0.8.1
https://github.com/python/cpython
Revision 2b724da8d9cd0c41a51e798eca75018ce155e997 authored by Jeremy Hylton on 29 January 2001, 22:51:52 UTC, committed by Jeremy Hylton on 29 January 2001, 22:51:52 UTC
This change eliminates an extra malloc/free when a frame with free
variables is created.  Any cell vars or free vars are stored in
f_localsplus after the locals and before the stack.

eval_code2() fills in the appropriate values after handling
initialization of locals.

To track the size the frame has an f_size member that tracks the total
size of f_localsplus. It used to be implicitly f_nlocals + f_stacksize.
1 parent 55087f0
History
Tip revision: 2b724da8d9cd0c41a51e798eca75018ce155e997 authored by Jeremy Hylton on 29 January 2001, 22:51:52 UTC
Remove f_closure slot of frameobject and use f_localsplus instead.
Tip revision: 2b724da
File Mode Size
BeOS
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.cvsignore -rw-r--r-- 79 bytes
.hgtags -rw-r--r-- 1.8 KB
LICENSE -rw-r--r-- 8.6 KB
Makefile.in -rw-r--r-- 18.0 KB
Makefile.pre.in -rw-r--r-- 22.3 KB
README -rw-r--r-- 35.6 KB
acconfig.h -rw-r--r-- 6.0 KB
config.h.in -rw-r--r-- 16.6 KB
configure -rwxr-xr-x 187.6 KB
configure.in -rw-r--r-- 38.0 KB
install-sh -rwxr-xr-x 2.2 KB
setup.py -rw-r--r-- 23.8 KB

README

back to top