[issue13857] Add textwrap.indent() as counterpart to textwrap.dedent()
Chris Jerdonek
report at bugs.python.org
Tue May 29 16:51:55 CEST 2012
Chris Jerdonek <chris.jerdonek at gmail.com> added the comment:
Perhaps because that's what str.split() does:
>>> "a\nb".split("\n")
['a', 'b']
>>> "a\nb\n".split("\n")
['a', 'b', '']
>>> "a\nb\n\n".split("\n")
['a', 'b', '', '']
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13857>
_______________________________________
More information about the Python-bugs-list
mailing list