[Python-checkins] python/dist/src/Include frameobject.h,2.37,2.38

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Fri Jul 2 02:41:37 EDT 2004


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18086/Include

Modified Files:
	frameobject.h 
Log Message:
SF Bug #215126:  Over restricted type checking on eval() function

The builtin eval() function now accepts any mapping for the locals argument.
Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing
down the normal case.  My timings so no measurable impact.



Index: frameobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/frameobject.h,v
retrieving revision 2.37
retrieving revision 2.38
diff -C2 -d -r2.37 -r2.38
*** frameobject.h	11 Sep 2002 15:36:31 -0000	2.37
--- frameobject.h	2 Jul 2004 06:41:04 -0000	2.38
***************
*** 20,24 ****
      PyObject *f_builtins;	/* builtin symbol table (PyDictObject) */
      PyObject *f_globals;	/* global symbol table (PyDictObject) */
!     PyObject *f_locals;		/* local symbol table (PyDictObject) */
      PyObject **f_valuestack;	/* points after the last local */
      /* Next free slot in f_valuestack.  Frame creation sets to f_valuestack.
--- 20,24 ----
      PyObject *f_builtins;	/* builtin symbol table (PyDictObject) */
      PyObject *f_globals;	/* global symbol table (PyDictObject) */
!     PyObject *f_locals;		/* local symbol table (any mapping) */
      PyObject **f_valuestack;	/* points after the last local */
      /* Next free slot in f_valuestack.  Frame creation sets to f_valuestack.




More information about the Python-checkins mailing list