Why was "coronavirus disease" shortened to "COVID" and not "CORVID"? I suspect the influence of Big Crow.
74/366 #366Challenge #xp
I read this book this morning. There are a few minor quibbles that I have with it, but otherwise there are a ton of great cases for open borders in here.
"Hi, I'm calling to report a leap day bug."
"Great! Where at?"
"Well..."
Comms guy: "Paul... The call, it's coming from *inside the Python documentation*"
https://docs.python.org/3/library/datetime.html#examples-of-usage-date
PEP 615: Support for the IANA Time Zone Database in the Standard Library
Now available for discussion!
You can read it here: https://t.co/n0eDfoOCnS
And you can comment and review it on the discourse thread: https://t.co/V3jvzkduL5
#python #timezones #datetime #iana https://twitter.com/pganssle/status/1232351405186396162
Here's a #lifehack for those of you who grind your teeth at night: if you can't find your mouth guard, go to sleep eating a lollipop! The stick will keep your teeth apart!
I haven't checked with a dentist but I'm 99% sure this is sound advice.
What is your preferred name for a time zone class that works with the /usr/share/zoneinfo files like America/New_York, etc generated from the IANA database (module name is zoneinfo)?
For the #python standard library.
Oh boy. Standard library time zone implementation is now passing a lot of tests. Still a bunch of TODO comments and tests to write but I think the API might be close to final.
Looks like it's time to start in on the documentation.😬
Interesting little project: parver, for parsing and manipulating PEP 440 version numbers.
https://pypi.org/project/parver/
https://github.com/RazerM/parver
Could be useful if you have scripts to bump your project's version.
The 2020 Python Packaging Summit at #pycon2020 is official! It will be held on April 16th, 2020 at the conference venue.
To read the announcement, register to attend, and suggest topics see https://t.co/f4lQbUQ3qW https://twitter.com/ThePyPA/status/1230141558982311936
We have ourselves a winner in the 2nd Programming Language World Championships! #plwc2020
Congratulations to Python, which was able to defend its title in a narrow 55 - 45 victory over C.
Third place goes to Rust with a convincing 68 - 32 against Lua.
Thank you to everyone who participated in the polls! See you next year for the third edition!
In #python, "and" / "or" don't return True / False, but the first value that confirms for sure the result of the test:
>>> [] or 0
0
>>> [] and 0
[]
>>> "hello" and 1
1
>>> "hello" or 1
'hello'
>>> "hello" or {}
'hello'
>>> "hello" and {}
{}
This works because...
RT @cocoaphony@twitter.com
Periodic Reminder: When debugging, you must first accept that something you believe is true is not true. If everything you believed about this system were true, it would work. It doesn't, so you're wrong about something.
This is a surprisingly common stumbling block for devs.
🐦🔗: https://twitter.com/cocoaphony/status/1224364439429881856
People who use Beautiful Soup for #Python screenscraping and various data projects:
https://groups.google.com/forum/?fromgroups#!topic/beautifulsoup/-w7TDFkaPTg
https://groups.google.com/forum/?fromgroups#!topic/beautifulsoup/aNC2TBR7QHY
On the upcoming sunset of Python 2 support, and of Beautiful Soup's 3.x series (switch to bs4)
Programmer working at Google. Python core developer and general FOSS contributor. I also post some parenting content.