mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Hide list comp variables and support set comprehensions
This commit is contained in:
parent
6ef6306dd6
commit
650f0d06d3
29 changed files with 2006 additions and 1323 deletions
|
|
@ -363,6 +363,10 @@ is the address to jump to (which should be a \code{FOR_ITER}
|
|||
instruction).
|
||||
\end{opcodedesc}
|
||||
|
||||
\begin{opcodedesc}{SET_ADD}{}
|
||||
Calls \code{set.add(TOS1, TOS)}. Used to implement set comprehensions.
|
||||
\end{opcodedesc}
|
||||
|
||||
\begin{opcodedesc}{LIST_APPEND}{}
|
||||
Calls \code{list.append(TOS1, TOS)}. Used to implement list comprehensions.
|
||||
\end{opcodedesc}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue