[issue7638] Counterintuitive str.splitlines() inconsistency.

David report at bugs.python.org
Tue Jan 5 04:02:38 CET 2010


David <vencabot_teppoo at hotmail.com> added the comment:

I typoed when copying my second snippet.

while request_buffer.splitlines[-1] != "" or request_buffer == "":


It should be:

while request_buffer.splitlines()[-1] != "" or request_buffer == "":


This code has the problem that I'm complaining of. I only failed at copying by-hand into the form.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7638>
_______________________________________


More information about the Python-bugs-list mailing list