OILS / opy / gold / slice_bytecode.py View on Github | oilshell.org

13 lines, 5 significant
1#!/usr/bin/env python2
2"""
3slice_bytecode.py
4"""
5
6def f():
7 stack = [1, 2]
8 del stack[:]
9 #stack[:] = [3]
10 print(stack)
11
12f()
13