make re.split consistent with strutils.split and other programming languages; refs #7278

This commit is contained in:
Andreas Rumpf 2018-03-05 21:39:13 +01:00
commit e2094bc6f4
2 changed files with 33 additions and 13 deletions

View file

@ -4,10 +4,16 @@
#### Breaking changes in the standard library
- ``re.split`` for empty regular expressions now yields every character in
the string which is what other programming languages chose to do.
#### Breaking changes in the compiler
### Library additions
- ``re.split`` now also supports the ``maxsplit`` parameter for consistency
with ``strutils.split``.
### Library changes
### Language additions