Python’s standard logging API violates PEP-8 and this #PEP proposes to fix this. Feedback and criticism of all sort is welcome.
You must log in or register to comment.
Sigmatics ( @Sigmatics@lemmy.ca ) 5•7 months agoWhile we’re at it, can we please define enums for the standard logging levels in the stdlib
robyoung ( @robyoung@beehaw.org ) 2•7 months agoYes! 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.
onlinepersona ( @onlinepersona@programming.dev ) English1•7 months agoIndeed, 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.