Re: new string method in 2.5 (partition)
"Bruno Desthuilliers" <bdesth.quelque chose@free.quel quepart.frwrote in
message news:4510425e$0 $12250$636a55ce @news.free.fr.. .
s.partition() was invented and its design settled on as a result of looking
at some awkward constructions in the standard library and other actual use
cases. Sometimes it replaces s.find or s.index instead of s.split. In
some cases, it is meant to be used within a loop. I was not involved and
so would refer you to the pydev discussions.
tjr
"Bruno Desthuilliers" <bdesth.quelque chose@free.quel quepart.frwrote in
message news:4510425e$0 $12250$636a55ce @news.free.fr.. .
>Err... is it me being dumb, or is it a perfect use case for str.split ?
at some awkward constructions in the standard library and other actual use
cases. Sometimes it replaces s.find or s.index instead of s.split. In
some cases, it is meant to be used within a loop. I was not involved and
so would refer you to the pydev discussions.
tjr
Comment