[issue30620] textwrap: dedent contains logic that can never execute

Emily Morehouse report at bugs.python.org
Sun Jun 11 19:23:08 EDT 2017


Emily Morehouse added the comment:

Jonathan, could you improve the comments for the dedent function? You have a great understanding of the logic flow from your proof and it would be beneficial to document this to avoid future confusion.

Specifically, it should be clear that Clause 2 inherently handles equivalence for margin and indent and that Clause 4 will always complete with the break statement.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list