3 ms·
A nano-feature I kept complaining about on the list got in 3.7, datetime.fromisoformat :-D https://docs.python.org/3.7/library/datetime.html#datetime.date.from
by mixmastamyk 8y ago
A nano-feature I kept complaining about on the list got in 3.7, datetime.fromisoformat :-D
https://docs.python.org/3.7/library/datetime.html#datetime.date.fromisoformat https://docs.python.org/3.7/library/datetime.html#datetime.d...
Turns out iso 8601 is a lot larger spec than people realize. "Perfect is the enemy of the good," prevented this function's inclusion for almost a decade, sigh. This one handles the majority usecase and can be extended later, if need be.
- AndrewOMartin 8y agoYou are the nano-hero the Python community deserves right now.
- mixmastamyk 8y ago*Sung to the tune of "Juke Box Hero" from Foreigner.