@mjgardner @icing actually, being liberal in accepting things is not a good idea either. If it violates the protocol, eject, close, kill, abort. At once. That leads to better code and protocols in the longer run.
Today's my last day at Google 🥲
I'm taking some time off to focus on my family, personal health, and to work on my bots.
If anyone knows of a role that'll fit me, I'll appreciate the intro! 😊
It's relatively easy to make a drop-in replacement for these, but also we're deprecating them because they're conceptually the wrong thing to do, so it's best to migrate to using aware datetimes if possible: https://blog.ganssle.io/articles/2019/11/utcnow.html
`datetime.utcnow` and `datetime.utcfromtimestamp` will be deprecated in #python 3.12: https://github.com/python/cpython/issues/103857
If you maintain a package, now is probably a good time to grep your source code for `utcnow` and `utcfromtimestamp` to get out ahead of the deprecation warnings. 📅🕐
You should absolutely include your tests in your coverage measurement.
https://nedbatchelder.com/blog/202008/you_should_include_your_tests_in_coverage.html
Solutions needed: Is it possible for coverage.py to automatically exclude Protocols from measurement?
Should coverage.py report a missing branch if a comprehension doesn't run to completion? https://github.com/nedbat/coveragepy/issues/1617#issuecomment-1535647011
Would it be better if instead of "2->exit" it said "completion(2)" ?
Bugs like `dt.replace(year=dt.year + 1)`, code that works with ordinal day-of-year, etc.
"Oh I need to communicate with someone on Discord quickly, guess I'll launch it. Oh, there's an update available, so Discord *prevents me from opening their appliaction*."
Reason #215 to avoid #discord.
Just released Typer 0.8.0 🔖
With support for ✨ custom param types ✨
Thanks to John Purviance for the work in the PyCon sprint! 🍰
https://typer.tiangolo.com/tutorial/parameter-types/custom-types/
Post-conference notes from my experience at PyCon 2023. I think I am squeaking under the wire for these to still be relevant…
Genuinely the best thread I've seen on Hacker News in years: "Ask HN: Most interesting tech you built for just yourself?"
So many delightfully niche projects!
https://news.ycombinator.com/item?id=35729232
Note: This is one of the *exceedingly rare* occasions where I like something like this.
For the most part I find content about datetimes, DST and programming in general to be boring and uninteresting.
Programmer working at Google. Python core developer and general FOSS contributor. I also post some parenting content.