[Python-3000] Lines breaking

Georg Brandl g.brandl at gmx.net
Tue May 29 08:28:25 CEST 2007


Neal Norwitz schrieb:
> On 5/28/07, Guido van Rossum <guido at python.org> wrote:
>>
>> Well, I would have complained about that too, except I was too busy
>> when splitlines() was snuck into the language behind my back. :-) I
> 
> Heh, just today I was wondering if we should kill splitlines:

And perhaps add tuple parameters to .split()?

x.split(("\r", "\n"))

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-3000 mailing list