@bitecode That's "not even wrong". pyproject.toml and setup.cfg are complements, not competitors.
It's like saying, "You shouldn't use tires, you should use axles!" They serve entirely different purposes.
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.
@toast That's a good principle, but two problems:
1. I think it's very common to do stuff like `from zoneinfo import ZoneFile`, so it should mostly stand on its own.
2. There are other plausible "files" to read from the /usr/share/zoneinfo - zonetab files, leap seconds files, etc. I won't be supporting any of those in the first release, but it still makes sense to make it clear that it's a time zone.
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!
@alexbuzzbee My understanding is there's a "compile everything into a single file" mode, which is what I was referring to.
Though again I sorta think "Here is a wheel install it with pipx then you can run it" or "install this thing in a virtual env and run it" is not that big a deal.
@alexbuzzbee This is more or less how PyInstaller works, though I will say that you are probably way better off using normal packaging and having people either install your scripts with a system installer or pipx or something.
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
Programmer working at Google. Python core developer and general FOSS contributor. I also post some parenting content.