Re: Why did logging not undergo PEP8 API change?
Skip Montanaro writes: > There was some discussion of the idea (before the thread predictably > wandered off into the weeds). I've not found anything else obviously > related to the topic. Perhaps it was nothing more than that the > threading module had a PEP-8 champion while logging didn't? Sometimes, even with a champion for improving the API through renames, it doesn't happen. There is still the BDFL (or whatever comes to replace that role) to reckon with https://mail.python.org/pipermail/python-dev/2008-July/081263.html>. In that case, it was the inertia of the existing body of code using the API names which gave justification to reject renames. I would expect that was significant also in the decision not to change the ‘logging’ API names. -- \ “[F]reedom of speech does not entail freedom to have your ideas | `\accepted by governments and incorporated into law and policy.” | _o__) —Russell Blackford, 2010-03-06 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list
Why did logging not undergo PEP8 API change?
In the run-up to Python 3, the threading module's API went from a Java-reminiscent set of names to a PEP-9 set of names, so threading.currentThread became threading.current_thread. Also (though they didn't get a change in case), some of the set/get methods in threading.Thread received the property treatment with admonition in the module documentation to use the property style. Why wasn't the logging package similarly updated? I imagine there might have been some python-dev discussion about this, but have yet to find anything. I found this thread here from 2009: https://mail.python.org/pipermail/python-list/2009-April/thread.html#533823 There was some discussion of the idea (before the thread predictably wandered off into the weeds). I've not found anything else obviously related to the topic. Perhaps it was nothing more than that the threading module had a PEP-8 champion while logging didn't? Skip -- https://mail.python.org/mailman/listinfo/python-list