summaryrefslogtreecommitdiffstatshomepage
path: root/examples/embedding
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-22 13:40:27 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-22 13:40:27 +1100
commit58f23def55a705357b352ce8af642e03cd5c49f0 (patch)
tree3fe37438e1e7b710eeba2662f3a849c002963b5a /examples/embedding
parent1110c8873c984f3abf9ee6ceff12ca87a45dd238 (diff)
downloadmicropython-58f23def55a705357b352ce8af642e03cd5c49f0.tar.gz
micropython-58f23def55a705357b352ce8af642e03cd5c49f0.zip
py/bc: Provide better error message for an unexpected keyword argument.
Now, passing a keyword argument that is not expected will correctly report that fact. If normal or detailed error messages are enabled then the name of the unexpected argument will be reported. This patch decreases the code size of bare-arm and stmhal by 12 bytes, and cc3200 by 8 bytes. Other ports (minimal, unix, esp8266) remain the same in code size. For terse error message configuration this is because the new message is shorter than the old one. For normal (and detailed) error message configuration this is because the new error message already exists in py/objnamedtuple.c so there's no extra space in ROM needed for the string.
Diffstat (limited to 'examples/embedding')
0 files changed, 0 insertions, 0 deletions