summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-02-12 15:28:27 (GMT)
committerMichael W. Hudson <mwh@python.net>2004-02-12 15:28:27 (GMT)
commitecfeb7f095dfd9c1c8929bf3df858ee35e0d9e9e (patch)
tree8f5dc5c69fda4c64aff520d38626f8640fc1dfdc /Python
parente6ed33a6b394a7ca1b10eb42833a0e2dd89937d1 (diff)
downloadcpython-ecfeb7f095dfd9c1c8929bf3df858ee35e0d9e9e.zip
cpython-ecfeb7f095dfd9c1c8929bf3df858ee35e0d9e9e.tar.gz
cpython-ecfeb7f095dfd9c1c8929bf3df858ee35e0d9e9e.tar.bz2
This is my patch #876198 plus a NEWS entry and a header frob.
Remove the ability to use (from C) arbitrary objects supporting the read buffer interface as the co_code member of code objects.
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index cf5e9ec..c6fb0bf 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -754,7 +754,7 @@ eval_frame(PyFrameObject *f)
consts = co->co_consts;
fastlocals = f->f_localsplus;
freevars = f->f_localsplus + f->f_nlocals;
- _PyCode_GETCODEPTR(co, &first_instr);
+ first_instr = PyString_AS_STRING(co->co_code);
/* An explanation is in order for the next line.
f->f_lasti now refers to the index of the last instruction