New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typo in logging.Formatter docstring #78596
Comments
There is a typo in the docstring for logging.Formatter:
I am sure it should be different (and in sync with the actual value):
The problem is in py2.7, py3.7 and most likely other versions. |
The default format depends on the style. From 3.8: class Formatter()
<docstring>
def __init__(self, fmt=None, datefmt=None, style='%'):
...
self._fmt = self._style._fmt It appears that the class docstring was not updated when the style parameter was added, in 3.2. So I think more change is needed. I will try to make a proposal later. |
... the style-dependent default value, "%(message)s", "{message}", or "${message}", is used. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: