mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
e6ed33a6b3
commit
ecfeb7f095
3 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue