Antoine Pitrou added the comment:

> For an empty string, sure -- for a string with nothing but white space, 
> no:

> --> wrap('   ')
> []

That's because wrap() suppresses extra whitespace by default. Once extra 
whitespace is suppressed, you are left with an empty text, meaning an empty 
list of lines. That's perfectly logical.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15510>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to