-
Notifications
You must be signed in to change notification settings - Fork 304
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
Debug output with Python 3.11 could be improved to match 3.10 #1284
Labels
Comments
Perhaps even better would be to change |
Sure. Anything but the raw integer values... Go ahead! :-)
…On Thu, Apr 20, 2023, 16:26 David Lechner ***@***.***> wrote:
Perhaps even better would be to change %s to %r so we get the repr which
shows both values instead of one or the other?
—
Reply to this email directly, view it on GitHub
<#1284 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKXZUE7E2AS7QIU5O3ZAPDXCFBQRANCNFSM6AAAAAAXFJMTLY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
dlech
added a commit
that referenced
this issue
Jul 19, 2023
It has been noted that IntEnum.__str__() has changed in Python 3.11 and now only prints integers instead of the name of the enum. This changes all logging messages that use enums in the WinRT backend to use %r for repr() so that we get both the name and the value. Fixes: #1284 Also changes uses of str.format() to f-strings and remove uses of format string from loggers while we are touching this.
dlech
added a commit
that referenced
this issue
Jul 20, 2023
It has been noted that IntEnum.__str__() has changed in Python 3.11 and now only prints integers instead of the name of the enum. This changes all logging messages that use enums in the WinRT backend to use %r for repr() so that we get both the name and the value. Fixes: #1284 Also changes uses of str.format() to f-strings and remove uses of format string from loggers while we are touching this.
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bluetoothctl -v
) in case of Linux:Description
With Python 3.10.x some lines looked like this:
With Python 3.11.x the str(IntEnum) output has changed and this lines become:
(Look at error- and status-values).
Consider just adding ".name" to the logger-line:
The text was updated successfully, but these errors were encountered: