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)
#todayILearned that, when searching in Firefox's tab bar, you can prefix your search with `%` to search exclusively in the titles of open tabs.
Maybe everyone else already knew this, but I didn't—and I have the feeling that it will *dramatically* increase the number of open tabs I have at any given time.
#plaintext email etiquette question:
When I'm replying to a thread with multiple participants, is there a standard way to indicate who I am quoting?
For example, in the exchange below, is there a good/standard way to attribute the first quote to Alice and the second to Bob?
> Foo is better
> Bar is better
I agree with Alice that foo is the way to go.
CC: @sir, resident plaintext email expert/evangelist
Great software documentation has these key things (not necessarily split like this):
User's Manual: How to use the software and all its features in enough detail to stand alone for normal use, including basic troubleshooting.
Service Manual: The broad design of the software and how to install, configure, upgrade, and otherwise maintain it, including advanced troubleshooting.
Programmer's Manual: Design details, APIs, and internals needed to modify the software or write code that works with it.
Now that we're all rested from the holidays, time for you all to sign up for some fun activities: https://fosdem.org/2020/news/2019-12-31-call-for-volunteers/ Jokes aside, it would be literally impossible to make FOSDEM happen without all the wonderful people who volunteer, so thank you :) !
I did some basic profiling and I think the multi-threading behavior is actually not buying me much, because a lot of the time is spent doing the zip encoding.
Not sure if there is a simple way to parallelize that or if it's even worth doing.
I soft-launched this a few weeks back, but here is my most polished (i.e. not very) @rustlang project to date: metadata-backup, a tool for backing up your file system metadata.
Contributions welcome!
Blog post: Testing an Arch Linux package in Gitlab CI
This is basically the blog post I was hoping to find when I was struggling with permissions issues in my new CI pipeline. It's a bit outside my comfort zone, so I'm especially keen on feedback (e-mail is best, but twitter or mastodon works in a pinch).
https://blog.ganssle.io/articles/2019/12/gitlab-ci-arch-pkg.html
#PyO3 is considering dropping support for Python 3.5, but is looking for feedback from users. See the issue here: https://github.com/PyO3/pyo3/issues/685
I see no mention of translations in the Wikipedia article for the episode: https://en.m.wikipedia.org/wiki/Free_Hat
Programmer working at Google. Python core developer and general FOSS contributor. I also post some parenting content.