this post was submitted on 01 Dec 2023
18 points (100.0% liked)

Python

6337 readers
11 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
 

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

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 6 points 11 months ago* (last edited 11 months ago)

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

[โ€“] [email protected] 3 points 11 months ago

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.