Brett Cannon
banner
brettcannon.mastodon.social.ap.brid.gy
Brett Cannon
@brettcannon.mastodon.social.ap.brid.gy
#Python core developer; snarky #Canadian

🌉 bridged from https://mastodon.social/@brettcannon on the fediverse by https://fed.brid.gy/
https://doesjitgobrrr.com/ now has a goal line for the Python JIT in 3.15 (at well as 3.16 and a custom line as well), and Arm support crossed the goal for the first time!
does JIT go brrr?
doesjitgobrrr.com
December 18, 2025 at 7:42 PM
Reposted by Brett Cannon
I see a lot of complaints about untested AI slop in pull requests. Submitting those is a dereliction of duty as a software engineer: Your job is to deliver code you have proven to work https://simonwillison.net/2025/Dec/18/code-proven-to-work/
Your job is to deliver code you have proven to work
In all of the debates about the value of AI-assistance in software development there’s one depressing anecdote that I keep on seeing: the junior engineer, empowered by some class of …
simonwillison.net
December 18, 2025 at 2:59 PM
Reposted by Brett Cannon
RE: https://fosstodon.org/@squidfunk/115739987490118848

since nobody listened to me, now you heard it from The Man: stop using MkDocs 😇

⁃ Sphinx: still maintained
⁃ API docs and cross links: work out of the box
⁃ MyST (Markdown in Sphinx): still maintained
⁃ Furo, sphinx-book-theme, …: still […]
Original post on mastodon.social
mastodon.social
December 18, 2025 at 3:51 PM
I had missed the initial announcement, but there's an `ubuntu-slim` runner for GitHub Actions.

https://github.blog/changelog/2025-10-28-1-vcpu-linux-runner-now-available-in-github-actions-in-public-preview/

It runs in a container instead of a VM for lightweight stuff […]
Original post on mastodon.social
mastodon.social
December 16, 2025 at 7:57 PM
It's looking very unlikely I will be at PyCon US in 2026 (or anywhere in the US for that matter):

https://www.theguardian.com/us-news/2025/dec/10/tourists-social-media-trump

I have a ton of email addresses thanks to Fastmail's masked emails, plus my mod work for discuss.python.org might be […]
Original post on mastodon.social
mastodon.social
December 11, 2025 at 12:08 AM
December 4, 2025 at 8:11 PM
Because @tiangolo isn't too active over here, there's a mini-doc on FastAPI https://www.youtube.com/watch?v=mpR8ngthqiE
December 4, 2025 at 8:09 PM
I tweaked some sponsorships today and I was about to start sponsoring Signal again (I've given up waiting for Android tablet support), and I realized that https://signal.org/blog/introducing-secure-backups/ gives me a nice way to sponsor while getting something out of it since I don't get a tax […]
Original post on mastodon.social
mastodon.social
December 1, 2025 at 11:58 PM
So, pip just halted plans I have been working towards for nearly a decade with a single line: https://github.com/pypa/pip/blob/36987b0c31b97ffb9fb7949ded628e9a6b10c016/src/pip/__main__.py#L13 .

Now I have to see if I can muster the motivation and energy to make this work somehow and then […]
Original post on mastodon.social
mastodon.social
November 28, 2025 at 11:44 PM
Reposted by Brett Cannon
Uruguay did what most nations still call impossible:
it built a power grid that runs almost entirely on renewables
—at half the cost of fossil fuels.
The physicist who led that transformation says the same playbook could work anywhere
—if governments have the courage to change the rules.
For […]
Original post on c.im
c.im
November 27, 2025 at 10:05 PM
RE: https://mastodon.social/@brettcannon/115591555691952750

Thanks to all 188 people who filled in the poll! CalVer won out, and since that's basically a monotonically increasing number with a timestamp, I choose to interpret the results as clearly "not SemVer".
mastodon.social
November 25, 2025 at 6:39 PM
In case anyone else missed it, Python 3.11 added _possessive quantifiers_ to the `re` module which I had never heard of before.

https://docs.python.org/3/library/re.html#module-re:~:text=%27%3Ca%3E%27.-,*%2B%2C%20%2B%2B%2C%20%3F%2B,-Like%20the%20%27*%27
November 25, 2025 at 6:30 PM
I ran into a typing failure with TypedDict that took some digging and using a new feature coming in Python 3.15 but available today in typing-extensions, so I decided to blog about it: https://snarky.ca/the-varying-strictness-of-typeddict/
The varying strictness of TypedDict
I was writing some code where I was using httpx.get() and its params parameter. I decided to use a TypedDict for the dictionary I was passing as the argument since it was for a REST API, where the potential keys were fully known. I then ran Pyrefly over my
snarky.ca
November 20, 2025 at 9:22 PM
With PEP 810 and lazy imports along with the fact you can no longer rely on an OS having Python installed, I **really** want an easy way to make a CLI tool for multiple OSs from my pure Python code and dependencies (i.e. simpler than what Briefcase is aimed at). If it was easy enough to do I […]
Original post on mastodon.social
mastodon.social
November 17, 2025 at 10:01 PM
Reposted by Brett Cannon
What's horrifying about this graph is that we're emitting CO2 from fossil hydrocarbons NOW at four times the rate we were when I was a child, and twice the rate we were in 1972, when we already knew that #climatechange was an existential problem.

Source […]

[Original post on mastodon.scot]
November 14, 2025 at 8:03 AM
One thing that bugs me about https://github.blog/news-insights/octoverse/typescript-python-and-the-ai-feedback-loop-changing-software-development/ is that it harps on TS being picked by AI models because it's typed.

But Python is typed! The problem is the models don't write typed Python code by […]
Original post on mastodon.social
mastodon.social
November 14, 2025 at 8:34 PM
Aspire 13 just came out and it has expanded Python support!
November 12, 2025 at 9:10 PM
I just shared the draft of my 34th PEP (it's about WASI support; it's just formalizing some stuff so it isn't really that interesting). Once I decide to get a PEP number I will be tied with @vstinner as the 4th most prolific PEP(co-)author.

Yes, I have a problem. But you could also argue Victor […]
Original post on mastodon.social
mastodon.social
November 6, 2025 at 11:50 PM
Reposted by Brett Cannon
Meta, Meta, Meta. So Meta. This Reuters report is 🔥

"Meta is earning a fortune on a deluge of fraudulent ads, documents show"

"Meta projected 10% of its 2024 revenue would come from ads for scams and banned goods, documents seen by Reuters show. And the social media giant internally estimates […]
Original post on infosec.exchange
infosec.exchange
November 6, 2025 at 6:38 PM
Reposted by Brett Cannon
The #curl release on GitHub is now marked as "immutable" and there's even something they call "release attestation" there now.

Just remember that the curl canonical releases are the signed tarballs uploaded by me. Reproducible, so you can verify them at will to not contain bad things. Signed to […]
Original post on mastodon.social
mastodon.social
November 5, 2025 at 7:23 AM
Reposted by Brett Cannon
Achievement unlocked: caused Hacker News to have a 150+ comment argument about a TikTok joke (while I was asleep) https://news.ycombinator.com/item?id=45820872
I’m worried that they put co-pilot in Excel | Hacker News
news.ycombinator.com
November 5, 2025 at 3:24 PM
RE: https://mastodon.social/@glyph/115493527623089000

This is amazing! But I want to remind others who weren't able to donate now but can in the future or whose US employers use Python, PyPI, etc. but are not PSF sponsors, that this drive covered a little over 2% of the funding that the PSF […]
November 5, 2025 at 8:17 PM
Reposted by Brett Cannon
I want to note, though, that even with all of this enthusiasm, the PSF is still not as funded as it would have been if they’d compromised their mission and taken the bestringed money offered by the NSF. This is good energy, to get grassroots funding to happen, but we *need* corporate […]
Original post on wandering.shop
wandering.shop
November 5, 2025 at 12:27 AM
Reposted by Brett Cannon
With only a few hours left to go, WE HAVE CROSSED THE FINISH LINE, and fully matched all $17,000! Here is a screenshot of my own match (as I said at the beginning, I was going to give $5000 regardless and $5000 to match, so this is the full $10k).
November 4, 2025 at 9:24 PM