0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00
cpython/Python
Jeremy Hylton 93a569d634 Fix computation of stack depth for classdef and closures.
Also minor tweaks to internal routines.
Use PyCF_MASK instead of explicit list of flags.

For the MAKE_CLOSURE opcode, the number of items popped off the stack
depends on both the oparg and the number of free variables for the
code object.  Fix the code so it accounts for the free variables.

In com_classdef(), record an extra pop to account for the STORE call
after the BUILD_CLASS.

Get rid of some commented out debugging code in com_push() and
com_pop().

Factor string resize logic into helper routine com_check_size().

In com_addbyte(), remove redudant if statement after assert.  (They
test the same condition.)

In several routines, use string macros instead of string functions.
2001-10-17 13:22:22 +00:00
..
.cvsignore
atof.c
bltinmodule.c SF patch #471852 (anonymous) notes that getattr(obj, name, default) 2001-10-16 21:31:32 +00:00
ceval.c make getarray static - it's only called from ceval.c and is not an 2001-10-15 20:51:38 +00:00
codecs.c
compile.c Fix computation of stack depth for classdef and closures. 2001-10-17 13:22:22 +00:00
dup2.c
dynload_aix.c
dynload_beos.c
dynload_dl.c
dynload_hpux.c
dynload_mac.c
dynload_next.c
dynload_os2.c
dynload_shlib.c
dynload_stub.c
dynload_win.c
errors.c SF bug [#467265] Compile errors on SuSe Linux on IBM/s390. 2001-10-02 21:32:07 +00:00
exceptions.c weakref.ReferenceError becomes a built-in exception now that weak ref objects 2001-10-05 21:50:08 +00:00
fmod.c
frozen.c
frozenmain.c
future.c
getargs.c Undo part of 2.59: 't' case of convertsimple() should not use convertbuffer(). 2001-10-11 14:40:37 +00:00
getcompiler.c
getcopyright.c
getcwd.c
getmtime.c
getopt.c
getplatform.c
getversion.c
graminit.c Very subtle syntax change: in a list comprehension, the testlist in 2001-10-15 15:44:05 +00:00
hypot.c
import.c Remove a couple of unused local variables (bug #445960, compiler warnings 2001-10-04 14:52:06 +00:00
importdl.c SF patch #471839: Bug when extensions import extensions (Shane Hathaway) 2001-10-16 20:07:34 +00:00
importdl.h
mactoolboxglue.c Replaced PyMac_FullPath by PyMac_FullPathname, which has an extra 'length' 2001-09-10 22:00:39 +00:00
marshal.c
memmove.c
modsupport.c
mysnprintf.c
mystrtoul.c
pyfpe.c
pystate.c
pythonrun.c SF patch #467455 : Enhanced environment variables, by Toby Dickenson. 2001-10-12 22:17:56 +00:00
sigcheck.c
strdup.c
strerror.c
strtod.c
structmember.c Put descr name in "bad memberdescr type" error message. 2001-10-16 16:51:56 +00:00
symtable.c Add optional docstrings to member descriptors. For backwards 2001-09-20 20:46:19 +00:00
sysmodule.c Rationalize the events passed to the profiler (no changes for the tracer). 2001-10-04 14:48:42 +00:00
thread_beos.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_cthread.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_foobar.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_lwp.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_nt.h Fix a bug in the previous checkin. The wrong bootstrap function was 2001-10-16 21:50:04 +00:00
thread_os2.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_pth.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_pthread.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_sgi.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_solaris.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread_wince.h Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
thread.c Partial patch from SF #452266, by Jason Petrone. 2001-10-16 21:13:49 +00:00
traceback.c