Steven D'Aprano <steve+pyt...@pearwood.info> added the comment:
> While the string method works pretty well, I do not think this is the best > way. Regardless of what we do for literals, a dedent() method will help for non-literals, so I think that this feature should go in even if we intend to change the default behaviour in the future: > 3.9. Implement "from __future__ import deindent". > 3.11. Emit a FutureWarning for multiline literals that will be changed by > dedending if "from __future__ import deindent" is not specified. > 3.13. Make it the default behavior. And that gives us plenty of time to decide whether or not making it the default, rather than an explicit choice, is the right thing to do. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36906> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com