]> granicus.if.org Git - python/commitdiff
fix broken merge
authorRichard Jones <richard@commonground.com.au>
Tue, 23 May 2006 18:32:11 +0000 (18:32 +0000)
committerRichard Jones <richard@commonground.com.au>
Tue, 23 May 2006 18:32:11 +0000 (18:32 +0000)
Objects/frameobject.c

index 08039574a7341b6ff8d1ca3845c9d1d5b29debcc..fcb5e4e32c4fcc70573b779f52278bad19987fd9 100644 (file)
@@ -362,8 +362,7 @@ static PyGetSetDef frame_getsetlist[] = {
    In zombie mode, no field of PyFrameObject holds a reference, but
    the following fields are still valid:
 
-     * ob_type, ob_size, f_code, f_valuestack,
-       f_nlocals, f_ncells, f_nfreevars, f_stacksize;
+     * ob_type, ob_size, f_code, f_valuestack;
        
      * f_locals, f_trace,
        f_exc_type, f_exc_value, f_exc_traceback are NULL;
@@ -629,11 +628,7 @@ PyFrame_New(PyThreadState *tstate, PyCodeObject *code, PyObject *globals,
                 }
 
                f->f_code = code;
-               f->f_nlocals = code->co_nlocals;
-               f->f_stacksize = code->co_stacksize;
-               f->f_ncells = ncells;
-               f->f_nfreevars = nfrees;
-               extras = f->f_nlocals + ncells + nfrees;
+               extras = code->co_nlocals + ncells + nfrees;
                f->f_valuestack = f->f_localsplus + extras;
                for (i=0; i<extras; i++)
                        f->f_localsplus[i] = NULL;