I added support for many more formats to and released a command-line version. $ pipx install strptime-cli $ strptime "Tue, 12 Nov 2024 09:50:24" %a, %d %b %Y %H:%M:%S The next time you run across a date/time string you need to parse in #Python, try it out!
We often rely on the falsiness of None in Python. Read more 👉 #Python
Question #Python-knowledgeable folks. I usually use & recommend platform.system() for identifying the current OS that code runs on. Is that the best approach? I only ask because platform.system() returns a user-facing name (it's not lowercased) and the docs for sys.platform note the possible names while platform.system()'s docs do not (Emscripten, WASI, and Cygwin are absent and I'm not even sure if those are the correct spellings for those platforms).