aboutsummaryrefslogtreecommitdiff
path: root/py/qstrdefs.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-12-05 12:14:57 +1100
committerDamien George <damien.p.george@gmail.com>2017-12-05 12:14:57 +1100
commit58f00d7c0e116e17ab141ae18275edea14b88431 (patch)
treee40e796d8cabf3cfc2bc5743ee7e49900c0dc3ac /py/qstrdefs.h
parente104e24e53a4e788785cca85332074b3cb5c6e29 (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.h1
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>)