summaryrefslogtreecommitdiffstatshomepage
path: root/unix/mpconfigport.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-04-04 00:09:23 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-04-04 00:09:48 +0300
commitac2f7a7f6aab135e90dd12d30b51d857628b0a59 (patch)
tree8d4e21696251c3124313073818dd583862c94dfd /unix/mpconfigport.h
parent82f37bf0d1080b4f508a6af36088cbe12b50c70b (diff)
downloadmicropython-ac2f7a7f6aab135e90dd12d30b51d857628b0a59.tar.gz
micropython-ac2f7a7f6aab135e90dd12d30b51d857628b0a59.zip
objstr: Add .splitlines() method.
splitlines() occurs ~179 times in CPython3 standard library, so was deemed worthy to implement. The method has subtle semantic differences from just .split("\n"). It is also defined as working for any end-of-line combination, but this is currently not implemented - it works only with LF line-endings (which should be OK for text strings on any platforms, but not OK for bytes).
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r--unix/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 891ba82e5e..00cb12139d 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -60,6 +60,7 @@
#define MICROPY_PY_FUNCTION_ATTRS (1)
#define MICROPY_PY_DESCRIPTORS (1)
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
+#define MICROPY_PY_BUILTINS_STR_SPLITLINES (1)
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
#define MICROPY_PY_BUILTINS_FROZENSET (1)
#define MICROPY_PY_BUILTINS_COMPILE (1)