s.split() on multiple separators

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Oct 1 05:32:08 CEST 2007


En Sun, 30 Sep 2007 16:16:30 -0300, <mrkafk at gmail.com> escribi�:

>> From my POV, if I want sequence from here to there, it should include
> both here and there.
>
> I do understand the consequences of making high bound exclusive, which
> is more elegant code: xrange(len(c)). But it does seem a bit
> illogical...

See this note from E.W.Dijkstra in 1982 where he says that the Python  
convention is the best choice.
http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html

-- 
Gabriel Genellina




More information about the Python-list mailing list