[New-bugs-announce] [issue42075] Verbose/confusing default format on warnings

Mithil report at bugs.python.org
Sun Oct 18 18:15:40 EDT 2020


New submission from Mithil <mithil467 at gmail.com>:

The default format prints a lot of details like filename, line number, and the source code on that line. A particular case where the warn message is written on the next line like -
warn(
   "Message here")
Will only print warn( as the source code and not the entire block.
My concern is, can this formatting be less detailed by default. Or, can this format be freely changed in a project A without worrying about affecting the global usage in any other project B that imports it.
Or at the very least, can this be made to print the entire block of code and not just the one line, because that makes it very confusing for the user.

More takes on the issue here - https://github.com/PyCQA/isort/issues/1568

----------
components: Library (Lib)
messages: 378906
nosy: Mithil
priority: normal
severity: normal
status: open
title: Verbose/confusing default format on warnings
type: behavior
versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42075>
_______________________________________


More information about the New-bugs-announce mailing list