diff options
author | Damien George <damien.p.george@gmail.com> | 2017-12-05 12:14:57 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-12-05 12:14:57 +1100 |
commit | 58f00d7c0e116e17ab141ae18275edea14b88431 (patch) | |
tree | e40e796d8cabf3cfc2bc5743ee7e49900c0dc3ac /py/qstrdefs.h | |
parent | e104e24e53a4e788785cca85332074b3cb5c6e29 (diff) |
py/modbuiltins: Use standard arg-parsing helper func for builtin print.
This allows the function to raise an exception when unknown keyword args
are passed in. This patch also reduces code size by (in bytes):
bare-arm: -24
minimal x86: -76
unix x64: -56
unix nanbox: -84
stm32: -40
esp8266: -68
cc3200: -48
Furthermore, this patch adds space (" ") to the set of ROM qstrs which
means it doesn't need to be put in RAM if it's ever used.
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r-- | py/qstrdefs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h index 4ded5be08..1b480c9c7 100644 --- a/py/qstrdefs.h +++ b/py/qstrdefs.h @@ -40,6 +40,7 @@ Q(/) Q(%#o) Q(%#x) Q({:#b}) +Q( ) Q(\n) Q(maximum recursion depth exceeded) Q(<module>) |