Lines Matching refs:TOS

324    Removes the top-of-stack (TOS) item.
360 Implements ``TOS = +TOS``.
365 Implements ``TOS = -TOS``.
370 Implements ``TOS = not TOS``.
375 Implements ``TOS = ~TOS``.
380 Implements ``TOS = iter(TOS)``.
385 If ``TOS`` is a :term:`generator iterator` or :term:`coroutine` object
386 it is left as is. Otherwise, implements ``TOS = iter(TOS)``.
393 Binary operations remove the top of the stack (TOS) and the second top-most
399 Implements ``TOS = TOS1 ** TOS``.
404 Implements ``TOS = TOS1 * TOS``.
409 Implements ``TOS = TOS1 @ TOS``.
416 Implements ``TOS = TOS1 // TOS``.
421 Implements ``TOS = TOS1 / TOS``.
426 Implements ``TOS = TOS1 % TOS``.
431 Implements ``TOS = TOS1 + TOS``.
436 Implements ``TOS = TOS1 - TOS``.
441 Implements ``TOS = TOS1[TOS]``.
446 Implements ``TOS = TOS1 << TOS``.
451 Implements ``TOS = TOS1 >> TOS``.
456 Implements ``TOS = TOS1 & TOS``.
461 Implements ``TOS = TOS1 ^ TOS``.
466 Implements ``TOS = TOS1 | TOS``.
471 In-place operations are like binary operations, in that they remove TOS and
473 when TOS1 supports it, and the resulting TOS may be (but does not have to be)
478 Implements in-place ``TOS = TOS1 ** TOS``.
483 Implements in-place ``TOS = TOS1 * TOS``.
488 Implements in-place ``TOS = TOS1 @ TOS``.
495 Implements in-place ``TOS = TOS1 // TOS``.
500 Implements in-place ``TOS = TOS1 / TOS``.
505 Implements in-place ``TOS = TOS1 % TOS``.
510 Implements in-place ``TOS = TOS1 + TOS``.
515 Implements in-place ``TOS = TOS1 - TOS``.
520 Implements in-place ``TOS = TOS1 << TOS``.
525 Implements in-place ``TOS = TOS1 >> TOS``.
530 Implements in-place ``TOS = TOS1 & TOS``.
535 Implements in-place ``TOS = TOS1 ^ TOS``.
540 Implements in-place ``TOS = TOS1 | TOS``.
545 Implements ``TOS1[TOS] = TOS2``.
550 Implements ``del TOS1[TOS]``.
557 Implements ``TOS = get_awaitable(TOS)``, where ``get_awaitable(o)``
567 Implements ``TOS = TOS.__aiter__()``.
577 Implements ``PUSH(get_awaitable(TOS.__anext__()))``. See ``GET_AWAITABLE``
603 Implements the expression statement for the interactive mode. TOS is removed
621 Calls ``set.add(TOS1[-i], TOS)``. Used to implement set comprehensions.
626 Calls ``list.append(TOS[-i], TOS)``. Used to implement list comprehensions.
631 Calls ``dict.setitem(TOS1[-i], TOS, TOS1)``. Used to implement dict
644 Returns with TOS to the caller of the function.
649 Pops TOS and yields it from a :term:`generator`.
654 Pops TOS and delegates to it as a subiterator from a :term:`generator`.
671 Loads all symbols not starting with ``'_'`` directly from the module TOS to
719 Cleans up the stack when a :keyword:`with` statement block exits. TOS is the
720 context manager's :meth:`__exit__` bound method. Below TOS are 1--3 values
728 In the last case, ``TOS(SECOND, THIRD, FOURTH)`` is called, otherwise
729 ``TOS(None, None, None)``. Pushes SECOND and result of the call
749 Implements ``name = TOS``. *namei* is the index of *name* in the attribute
762 Unpacks TOS into *count* individual values, which are put onto the stack
768 Implements assignment with a starred target: Unpacks an iterable in TOS into
780 Implements ``TOS.name = TOS1``, where *namei* is the index of name in
786 Implements ``del TOS.name``, using *namei* as index into :attr:`co_names`.
829 ``{..., TOS3: TOS2, TOS1: TOS}``.
912 Replaces TOS with ``getattr(TOS, co_names[namei])``.
923 Imports the module ``co_names[namei]``. TOS and TOS1 are popped and provide
932 Loads the attribute ``co_names[namei]`` from the module found in TOS. The
944 If TOS is true, sets the bytecode counter to *target*. TOS is popped.
951 If TOS is false, sets the bytecode counter to *target*. TOS is popped.
958 If TOS is true, sets the bytecode counter to *target* and leaves TOS on the
959 stack. Otherwise (TOS is false), TOS is popped.
966 If TOS is false, sets the bytecode counter to *target* and leaves TOS on the
967 stack. Otherwise (TOS is true), TOS is popped.
979 TOS is an :term:`iterator`. Call its :meth:`~iterator.__next__` method. If
981 it). If the iterator indicates it is exhausted TOS is popped, and the byte
1015 Stores TOS into the local ``co_varnames[var_num]``.
1048 Stores TOS into the cell contained in slot *i* of the cell and free variable
1064 the parameter as TOS1, and the exception as TOS.
1119 Loads a method named ``co_names[namei]`` from TOS object. TOS is popped and
1120 method and TOS are pushed when interpreter can call unbound method directly.
1121 TOS will be used as the first argument (``self``) by :opcode:`CALL_METHOD`.
1150 * the :term:`qualified name` of the function (at TOS)
1158 ``slice(TOS1, TOS)`` is pushed; if it is 3, ``slice(TOS2, TOS1, TOS)`` is