Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 639a8ff

Browse files
committed
Thomas removed all the SLICE op codes
1 parent 71d4a34 commit 639a8ff

1 file changed

Lines changed: 0 additions & 65 deletions

File tree

Doc/library/dis.rst

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -326,71 +326,6 @@ the original TOS1.
326326

327327
Implements in-place ``TOS = TOS1 | TOS``.
328328

329-
The slice opcodes take up to three parameters.
330-
331-
332-
.. opcode:: SLICE+0 ()
333-
334-
Implements ``TOS = TOS[:]``.
335-
336-
337-
.. opcode:: SLICE+1 ()
338-
339-
Implements ``TOS = TOS1[TOS:]``.
340-
341-
342-
.. opcode:: SLICE+2 ()
343-
344-
Implements ``TOS = TOS1[:TOS]``.
345-
346-
347-
.. opcode:: SLICE+3 ()
348-
349-
Implements ``TOS = TOS2[TOS1:TOS]``.
350-
351-
Slice assignment needs even an additional parameter. As any statement, they put
352-
nothing on the stack.
353-
354-
355-
.. opcode:: STORE_SLICE+0 ()
356-
357-
Implements ``TOS[:] = TOS1``.
358-
359-
360-
.. opcode:: STORE_SLICE+1 ()
361-
362-
Implements ``TOS1[TOS:] = TOS2``.
363-
364-
365-
.. opcode:: STORE_SLICE+2 ()
366-
367-
Implements ``TOS1[:TOS] = TOS2``.
368-
369-
370-
.. opcode:: STORE_SLICE+3 ()
371-
372-
Implements ``TOS2[TOS1:TOS] = TOS3``.
373-
374-
375-
.. opcode:: DELETE_SLICE+0 ()
376-
377-
Implements ``del TOS[:]``.
378-
379-
380-
.. opcode:: DELETE_SLICE+1 ()
381-
382-
Implements ``del TOS1[TOS:]``.
383-
384-
385-
.. opcode:: DELETE_SLICE+2 ()
386-
387-
Implements ``del TOS1[:TOS]``.
388-
389-
390-
.. opcode:: DELETE_SLICE+3 ()
391-
392-
Implements ``del TOS2[TOS1:TOS]``.
393-
394329

395330
.. opcode:: STORE_SUBSCR ()
396331

0 commit comments

Comments
 (0)