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.
@foxhkron ISO 8601 is not a single date format, it's actually hundreds of related datetime formats, plus some other stuff.
It's shockingly complicated and doesn't even capture some important stuff, but YYYY-MM-DD is a pretty good date format.
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
@bitecode Neither are reversible. The human is a normal human with memories of being a frog and no other memories. They have the equivalent human characteristics relative to the human population that they had relative to the frog population, so if they are a particularly smart frog, they will be a particularly smart human.
They do not know human languages or culture, but they can learn these things.
Programmer working at Google. Python core developer and general FOSS contributor. I also post some parenting content.