Splitting text at whitespace but keeping the whitespace in thereturned list
Aahz
aahz at pythoncraft.com
Tue Jan 26 18:36:26 EST 2010
In article <roy-E19D6B.07401526012010 at news.panix.com>,
Roy Smith <roy at panix.com> wrote:
>
>I've never used partition() before; my first thought on reading the above
>was, "That's weird, it should be returning a list". Then I went and looked
>at the docs. Given the description (returns specifically a 3-tuple), I
>guess a tuple makes sense, but now I'm wondering what the use case was for
>this method when it was invented?
http://docs.python.org/whatsnew/2.5.html
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
import antigravity
More information about the Python-list
mailing list