mirror of
https://github.com/python/cpython.git
synced 2025-09-03 07:28:59 +00:00
Remove the UNARY_CONVERT opcode (was used for backticks). Also bumped up the
import MAGIC number.
This commit is contained in:
parent
5f5cfd121d
commit
e2e23ef97d
12 changed files with 4 additions and 74 deletions
|
@ -1040,14 +1040,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
|||
STACKADJ(-1);
|
||||
break;
|
||||
|
||||
case UNARY_CONVERT:
|
||||
v = TOP();
|
||||
x = PyObject_Repr(v);
|
||||
Py_DECREF(v);
|
||||
SET_TOP(x);
|
||||
if (x != NULL) continue;
|
||||
break;
|
||||
|
||||
case UNARY_INVERT:
|
||||
v = TOP();
|
||||
x = PyNumber_Invert(v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue