Wow, this is... not how to respond when someone points out that your benchmarks are misleading:
I am happy to announce the 0.2.0 release of backports.zoneinfo — a backport of Python 3.9's `zoneinfo` module to Python 3.6+, including support for PyPy!
Now you have no excuses to start replacing your old time zone libraries with zoneinfo!
"This might be a contender for one of the most obscure bugs I've seen." -@jaraco, on a bug triggered under *very* specific conditions (including the user's last name...)
https://github.com/pypa/setuptools/issues/2129#issuecomment-635266616
Oh wow, I didn't know that if you want to prevent os.walk from walking a specific subdirectory, you can modify the list of directory names it returns in place: https://stackoverflow.com/a/19859907
Not the most intuitive way to accomplish this, but definitely useful.
Anyone know how much data processing is done in the #entomology world? What, if anything, is the common software stack? How do entomologists use computers?
Just came across this article on realpython.org about working with datetimes.
Unusually for articles of this genre, I actually agree with most/all of the recommendations I read (doesn't hurt that they linked to 4 of my blog posts... 😛):
Test & Code 111: Subtests in Python with unittest and pytest with @pganssle
What are subtests?
Why you might want them?
What should you watch out for if you decide to use them? https://twitter.com/brianokken/status/1256638539246104576
Most of you just know me as a fan of chiptune music, but did you know I also do #python programming?
I've just had my first PEP accepted to the Python language! PEP 615, to add IANA time zone support to the standard library:
https://mail.python.org/archives/list/python-dev@python.org/thread/MDR2FL66R4T4VSLUI5XRFFUTKD43FMK4/
Harumph. I'm supposed to be sad right now because so many of my friends are leaving #pycon, not sad because I haven't seen them in so long. This is the wrong kind of sad!
#Makeheaders is a #C header file generator.
Makeheaders scans C or C++ source files for public definitions and creates header files containing prototypes for found definitions. Makeheaders enables integration of both the interface and implementation into a single file which is automatically expanded into the two files. Makeheaders is very fast, works with make, and can work as #Ctags.
Website 🔗️: https://www.hwaci.com/sw/mkhdr/
If anyone has opinions about ZoneInfo equality and hash behavior, now is the time to make your voice heard: https://discuss.python.org/t/pep-615-support-for-the-iana-time-zone-database-in-the-standard-library/3468/60
Turn your favourite regex into FAT32 https://github.com/8051Enthusiast/regex2fat
Yes, you read that well
Programmer working at Google. Python core developer and general FOSS contributor. I also post some parenting content.