2 ms·
I'm relatively new to Python but one of the things I love most about the community is the easily accessible PEPs...I know Ruby has mailing lists and discussion
by danso 11y ago
I'm relatively new to Python but one of the things I love most about the community is the easily accessible PEPs...I know Ruby has mailing lists and discussion groups where changes to the language are hashed out...but I've never come across anything that resembles PEP, a well-organized list of articles that aren't just proposals, but well-edited documents that are a pleasure to read while going in-depth into the reasoning behind the proposal, the ensuing debate, and how/when/and why action was taken. I've never better understood a language better than I do Python.
As an example, one of my recent favorites is PEP 495 Local Time Disambiguation [0] -- a feature which has been approved for 3.6. I can't summarize it capably, but it covers a topic about time that I hadn't even thought about, in a very readable yet thorough fashion. I was reminded of it when reading the OP, because both PEPS involve a seemingly inexplicable naming issue that ends up having a perfectly rational explanation -- when you think through the details.
In PEP 495, which adds an attribute named `fold` to datetime objects, there's debate about whether `fold` is the right term (or rather, why not have the attribute's name be more closely tied to "daylight savings time")...and the explanation, which covers past examples of confusion with DST, while anticipating compatibility issues with pre 3.6 datetime implementation, is perfectly convincing, as common sense as something can be regarding an esoteric topic.
[0] https://www.python.org/dev/peps/pep-0495/ https://www.python.org/dev/peps/pep-0495/