Demo: Variadic list.extend and dict.update

d = {} d.update( {1: 2}, {}, {1: 11, 7: 8}, [(9, 10)], cat='dog' ) d.update() # NOP print(d) l = [] l.extend( [1, 2, 3], [], [4, 5], ) l.extend() # NOP print(l) import collections od = collections.OrderedDict() od[7] = 8 od.update( [(1,2), (3,4)], [], {}, {7: 20}, cat='dog' ) od.update() # NOP print(od)
The simple REPL provides a limited Python experience in the browser. Tools/wasm/README.md contains a list of known limitations and issues. Networking, subprocesses, and threading are not available.