-
- Downloads
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).
Showing
- py/mpconfig.h 5 additions, 0 deletionspy/mpconfig.h
- py/objstr.c 34 additions, 2 deletionspy/objstr.c
- py/objstr.h 1 addition, 0 deletionspy/objstr.h
- py/objstrunicode.c 3 additions, 0 deletionspy/objstrunicode.c
- py/qstrdefs.h 5 additions, 0 deletionspy/qstrdefs.h
- unix/mpconfigport.h 1 addition, 0 deletionsunix/mpconfigport.h
Loading
Please register or sign in to comment