mirror of
https://github.com/micropython/micropython.git
synced 2025-09-06 01:40:34 +02:00
This is a partial implementation of PEP 448 to allow multiple ** unpackings when calling a function or method. The compiler is modified to encode the argument as a None: obj key-value pair (similar to how regular keyword arguments are encoded as str: obj pairs). The extra object that was pushed on the stack to hold a single ** unpacking object is no longer used and is removed. The runtime is modified to decode this new format. Signed-off-by: David Lechner <david@pybricks.com>
14 lines
135 B
Plaintext
14 lines
135 B
Plaintext
None
|
|
['a', 'b']
|
|
('a', 'b') {'kw_arg': None}
|
|
2
|
|
1
|
|
SyntaxError
|
|
SyntaxError
|
|
SyntaxError
|
|
SyntaxError
|
|
SyntaxError
|
|
3.4
|
|
3 4
|
|
IndexError('foo',)
|