Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 41464:060c79f6d919
Hide list comp variables and support set comprehensions
| author | Nick Coghlan <ncoghlan@gmail.com> |
|---|---|
| date | Sun, 15 Apr 2007 12:05:43 +0000 |
| parents | 19f7ff443718 |
| children | 06145fbc7ab9 |
line wrap: on
line diff
--- a/Python/ceval.c Fri Apr 13 19:02:54 2007 +0000 +++ b/Python/ceval.c Sun Apr 15 12:05:43 2007 +0000 @@ -1241,6 +1241,18 @@ } break; + case SET_ADD: + w = POP(); + v = POP(); + err = PySet_Add(v, w); + Py_DECREF(v); + Py_DECREF(w); + if (err == 0) { + PREDICT(JUMP_ABSOLUTE); + continue; + } + break; + case INPLACE_POWER: w = POP(); v = TOP();
