[Python-3000] Lines breaking (original) (raw)

Neal Norwitz nnorwitz at gmail.com
Tue May 29 08:12:31 CEST 2007


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:

$ grep splitlines find Lib -name '*.py' | egrep -v '(difflib|/test/|UserString)' | wc 24 111 1653 $ egrep 'split[^l]' find Lib -name '*.py' | egrep -v '(difflib|/test/|UserString)' | wc 916 4943 63104

splitlines() is pretty lightly used. split() has many uses (not surprising).

n



More information about the Python-3000 mailing list