PEP: 8106 Title: Enhance logging API with PEP-0008-compliant aliases (github.com)
from thedeepself@programming.dev to python@programming.dev on 01 Dec 2023 13:02
https://programming.dev/post/6660462

Python’s standard logging API violates PEP-8 and this #PEP proposes to fix this. Feedback and criticism of all sort is welcome.

#python

threaded - newest

onlinepersona@programming.dev on 01 Dec 2023 17:44 next collapse

Indeed, this has been a little baffling for me. If I’m not mistaken there are even some snake case aliases for some things in the logging library, but it’s hard to guess which ones. Deprecating everything that doesn’t conform and removing them in a future major release is the way to go, IMO.

robyoung@beehaw.org on 01 Dec 2023 18:42 next collapse

Yes! I hope this is a trend that continues. I remember this being quite confusing as a new Python developer. I was convinced there was something special about these kinds of camel cased methods.

Sigmatics@lemmy.ca on 02 Dec 2023 07:00 collapse

While we’re at it, can we please define enums for the standard logging levels in the stdlib