[Scilab-Dev] SEP 26 : strsplit(), add the capability to split a string on a pattern.

bernard.hugueney at scilab.org bernard.hugueney at scilab.org
Wed May 6 12:02:50 CEST 2009


On Wed, 06 May 2009 11:39:26 +0200, <bernard.hugueney at scilab.org> wrote:
> On Wed, 06 May 2009 10:55:30 +0200, Pierre MARECHAL
> <pierre.marechal at scilab.org> wrote:
>> Hi all,
>> 
>> Please find attached SEP #26 
>>
>
<http://gitweb.scilab.org/?p=scilab.git;a=blob;f=SEP/SEP_26_extends_strsplit.odt;h=e605e5c37ad473538e4851c59fb944c04552bdaa;hb=HEAD>
> 
> Hi,
> Two comments based on cursory reading :
[...]
> 

Actually, I have another suggestion :

3) When no separator is given as argument, do as python does [1]:
"If sep is not specified or is None, a different splitting algorithm is
applied: runs of consecutive whitespace are regarded as a single separator,
and the result will contain no empty strings at the start or end if the
string has leading or trailing whitespace."


Best regards,

Bernard

PS: s/Actually/Currently/ in Abstract ;)

[1] http://docs.python.org/library/stdtypes.html



More information about the dev mailing list