A proposal idea for string.split with negative maxsplit
apardon at forel.vub.ac.be
Fri Jan 28 10:56:40 CET 2005
Op 2005-01-28, Fredrik Lundh schreef <fredrik at pythonware.com>:
> Antoon Pardon wrote:
>> This behaviour would remain but additionally we would have the
>> ["st1:st2:st3" , "st4" , "st5"]
>> What do people think here?
>>>> "st1:st2:st3:st4:st5".rsplit(':', 2)
> ['st1:st2:st3', 'st4', 'st5']
Damn, I was looking in the wrong version of the docs when I was
looking for this. Sorry about that.
More information about the Python-list