[issue44722] RFC: string Multiline Formatter
New submission from creative-resort : I'm opening this issue to propose the following enhancement and a PR on GitHub. Concerning: https://github.com/python/cpython/blob/main/Lib/string.py The idea: Format strings, that are comprised of field values with newlines (Multiline) as Multiline strings in a quasi tabbed format. --> In particular useful for logging of information, that occupies multiple lines. For example: '{levelname}:{name}:{message}:{api}', where the message and the api field is a string with multiple lines (contains newlines) The result: 2021-07-23 09:50:28,981 module_name WARNING Quota exceeded Google-Cloud-API Backing off for 5s version: v1 after trying 2x -- components: Library (Lib) messages: 398034 nosy: creative-resort priority: normal severity: normal status: open title: RFC: string Multiline Formatter type: enhancement ___ Python tracker <https://bugs.python.org/issue44722> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44722] RFC: string Multiline Formatter
Change by creative-resort : -- keywords: +patch pull_requests: +25845 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27301 ___ Python tracker <https://bugs.python.org/issue44722> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44722] RFC: string Multiline Formatter
creative-resort added the comment: Thank you. In the process of providing that description I also just realized – after also seeing the build fail – that I'm making use of a library which is not part of the core (llist) for a doubly linked list. That dependency is most probably a deal breaker and would require refactoring. -- ___ Python tracker <https://bugs.python.org/issue44722> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44722] RFC: string Multiline Formatter
creative-resort added the comment: Thank you for your kind guidance :) -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue44722> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com