summaryrefslogtreecommitdiff
path: root/Include/frameobject.h
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-07-02 06:41:07 +0000
committerRaymond Hettinger <python@rcn.com>2004-07-02 06:41:07 +0000
commit214b1c3aaea3e83302df9ea37a37b3c7548b92b1 (patch)
tree4ddeda01308aec48c7edda3188a4aad84dc9435b /Include/frameobject.h
parent78bace7442bb89aa005950a1e37f71d4704d4cb6 (diff)
downloadcpython-git-214b1c3aaea3e83302df9ea37a37b3c7548b92b1.tar.gz
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.
Diffstat (limited to 'Include/frameobject.h')
-rw-r--r--Include/frameobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/frameobject.h b/Include/frameobject.h
index 2820e88bb0..7dc14e3204 100644
--- a/Include/frameobject.h
+++ b/Include/frameobject.h
@@ -19,7 +19,7 @@ typedef struct _frame {
PyCodeObject *f_code; /* code segment */
PyObject *f_builtins; /* builtin symbol table (PyDictObject) */
PyObject *f_globals; /* global symbol table (PyDictObject) */
- PyObject *f_locals; /* local 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.
Frame evaluation usually NULLs it, but a frame that yields sets it