Sign in

iiinova is part of the Atmosphere — an open, public network where you own your identity.

Brett Cannon

@brettcannon.fosstodon.org.ap.brid.gy
22 followers 0 following 73 posts

#Python core developer; principal software engineer for #Microsoft working on Python stuff (although opinions my own, etc., etc.); snarky #Canadian [bridged from fosstodon.org/@brettcannon on the fediverse by fed.brid.gy ]

PostsRepliesMedia
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 06/06/2025
Heads up that I will be migrating this account to mastodon.social/@brettcannon shortly (assuming everything goes well). I believe the most visible thing that will happen is if I follow you I will show up as following you again from the new account. The impetus for this was […]
fosstodon.org
Original post on fosstodon.org
002 2
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 05/06/2025
How did MCP get standardized before a location for prompt files? I'm rather dumbfounded that I can't write a single prompt file for a repo and just have the models all pick it up automatically without some editor-specific setting.
001 1
Reposted by Brett Cannon
Seth Larson @sethmlarson.fosstodon.org.ap.brid.gy · 03/06/2025
The PSF Developers-in-Residence program makes this possible, check out how the @ThePSF supports the Python ecosystem with full-time staffing: www.python.org/psf/developersinresi…
python.org
PSF Developers in Residence
The official home of the Python Programming Language
001 1
Reposted by Brett Cannon
Seth Larson @sethmlarson.fosstodon.org.ap.brid.gy · 03/06/2025
Thanks to the work of Python Release Managers and all the Developers-in-Residence we have a coordinated #Python #security release of all versions for 5 CVEs all in one day (1 critical, 3 high, 1 medium) […]
fosstodon.org
Original post on fosstodon.org
238 8
Reposted by Brett Cannon
John Siracusa @siracusa.mastodon.social.ap.brid.gy · 04/06/2025
Perl: 37 years old Python: 34 years old
Text from a Wall Street Journal article: “But when it comes to full translation, the technology still has some room to mature, he said. It can technically rewrite code from an old language like Perl in a new one like Python, but it wouldn’t necessarily know how to write it as efficient code that takes advantage of all Python’s capabilities, he said. And that’s one big reason humans are staying in the loop, he said.”

The sentence about Perl and Python is highlighted.
12780 80
Reposted by Brett Cannon
Hynek Schlawack @hynek.mastodon.social.ap.brid.gy · 04/06/2025
dependency groups 🥰
structlog 25.3.0 with dev-only packaging extras 🤮structlog 25.4.0 without dev-only packaging extras thanks to PEP 735 🤩
002 2
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 02/06/2025
@offby1 Maybe their book writing is all they do and what they find cool?
100 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 29/05/2025
@pdebruin Just because I found 4 doesn't mean I found the best one for me. And since FaaS is a form of vendor lock-in, it isn't something I want to rush into.
100 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 29/05/2025
AI failed: paragraph-formatted spec using something introduced in Python 3.12 (Claude Sonnet 3.7 came the closest to succeeding; Claude 4 wasn't out yet) AI nailed: updating a Dockerfile so that it downloaded the right file for the CPU architecture (I told it the final outcome and to update CI […]
fosstodon.org
Original post on fosstodon.org
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 29/05/2025
I'm looking for a functions-as-a-service with a cron/schedule trigger. I have found some, but I'm wondering if I'm missing any (I'll take any that can run Python, Rust, JS via ReScript or Gleam, or BEAM via Gleam)? […]
fosstodon.org
Original post on fosstodon.org
110 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 28/05/2025
@glyph I think docs.joinmastodon.org/methods/filte… would let me add a post to a filter without relying on the server matching a keyword.
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 27/05/2025
@glyph Looking at docs.joinmastodon.org/methods/filte… and docs.joinmastodon.org/methods/statu… I'm not seeing how to make that toggle on my behalf for a specific post.
docs.joinmastodon.org
filters API methods
Create and manage filters.
100 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 27/05/2025
@shauna Nope, I don't take notes.
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 27/05/2025
I was poking around the Mastodon APIs and I can't find a way to have a bot hide individual posts for me, only update my filters list. Am I missing something?
100 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 27/05/2025
Went through various Pocket replacements this weekend. I wanted a read queue that has strips out superfluous stuff from the page (i.e. not bookmarking, so that eliminated Raindrop, Linkwarden). I tried: - Readwise: nice, but too expensive just for this and RSS not powerful enough to unseat […]
fosstodon.org
Original post on fosstodon.org
100 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 25/05/2025
I want a mobile OS where apps are nothing more than PWAs or WebAssembly with worlds standardized by the Bytecode Alliance.
171 7
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 24/05/2025
@fallenhitokiri Is there to add a link via a GET request for use with e.g. Feedbin? feedbin.com/help/sharing-read-it-la…
feedbin.com
Sharing/Read-it-later Services
There are a lot of sharing (i.e. Twitter and Facebook) and read-it-later services (Instapaper, Readability and Pocket). Chances are your favorites support sh...
100 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 23/05/2025
I just got the "Admired" badge on discuss.python.org, and I'm only the 2nd person after @pfmoore to get it. discuss.python.org/badges/31/admired I don't know what that says about Paul and me that we have posted over 300 times, let alone that many times with at least at least 5 likes. 😅
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 23/05/2025
@hynek Yep! I specifically made sure to book a room with breakfast included for those random breakfast gatherings.
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 23/05/2025
Just booked everything for #europython2025 ! I will be there Tuesday - Friday, so I will be at the #WebAssembly summit, my keynote, and everything else in the main conference! I will be staying with what seems like the rest of the conference in the Grand Hotel Prague Towers Monday through […]
fosstodon.org
Original post on fosstodon.org
110 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 23/05/2025
@fallenhitokiri thanks for the info!
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 23/05/2025
@fallenhitokiri Pocket does have offline mode, but it's not a deal-breaker for me
000 0
Reposted by Brett Cannon
Simon Willison @simon.fedi.simonwillison.net.ap.brid.gy · 23/05/2025
Once again, if your LLM system combines access to private data, exposure to malicious instructions and the ability to exfiltrate information (through tool use or through rendering links and images) you have a nasty security hole This time, GitLab […]
fedi.simonwillison.net
Original post on fedi.simonwillison.net
11040 40
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 22/05/2025
If I had a connection in Munich from Canada to Prague and I had 1h45m to make that connection (so I suspect customs and security), is that enough time? It would be on Lufthansa the whole way if that helps. Otherwise I'm looking at 1h10m in Zurich (seems too short), 1h47m in Toronto (which is a […]
fosstodon.org
Original post on fosstodon.org
101 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 22/05/2025
@fallenhitokiri Does it provide a text-only view that strips out all the superfluous stuff on a page?
100 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 22/05/2025
Mozilla is shutting down Pocket. getpocket.com/farewell Where to next? @instapaper ?
getpocket.com
Pocket
201 2
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 20/05/2025
@pauleveritt I just started to listening to the Talk Python to Me episode on t-strings, and I can tell you that according to opensource.snarky.ca/About+Me/Appea… , @mkennedy has not found me interesting enough to be on since Dec 2023, so I have 3.5 years left to be boring 😉
opensource.snarky.ca
Appearances - Open Source by Brett Cannon
Appearances - Open Source by Brett Cannon
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 18/05/2025
The trailer for the Python documentary is out! youtu.be/pqBqdNIPrbo?si=9LLlghqZkJR…
124 4
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 16/05/2025
I wrote a blog post unravelling t-strings to help explain what they are doing -- providing syntactic access to the f-string parser -- while we wait on the official docs. snarky.ca/unravelling-t-strings /cc @pauleveritt @lysnikolaou
snarky.ca
Unravelling t-strings
PEP 750 introduced t-strings for Python 3.14. In fact, they are so new that as of Python 3.14.0b1 there still isn't any documentation yet for t-strings. 😅 As such, this blog post will hopefully help explain what exactly t-strings are and what you might use them for by
102 2
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 16/05/2025
@tintvrtkovic www.linkedin.com/posts/mdboom_its-b…
linkedin.com
It's been a tough couple of days. Microsoft's support for the Faster… | Mike Droettboom | 30 comments
It's been a tough couple of days. Microsoft's support for the Faster CPython project was canceled yesterday, and my heart goes out to the majority of the team that was laid off. A hard day for me, but even harder for others. If you are looking for top-notch expertise in the CPython core, reach out and I can connect you. We were all (minus one) set to attend the Python Language Summit at PyCon today, and in fact the notifications went out while we were en route to Pittsburgh. The "show went on" and it was the usual "productive disagreements" to make Python the best it can be. (It would have been fine, of course, if anyone wanted to take a beat under the circumstances). This is the superpower resiliency of open source: progress continues and doesn't just vanish in a puff of locked-up IP when business needs change. Looking around the room, I saw so many faces--some I have known for almost 25 years--coming together again with the same shared purpose, even as the company names on our badges change. | 30 comments on LinkedIn
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 14/05/2025
There were layoffs at MS yesterday and 3 #Python core devs from the Faster CPython team were caught in them. If you know of any jobs, please send them their way (they kind of know Python, CPython, and its internals well 😉): Eric Snow: www.linkedin.com/in/ericsnowcurrent… Irit Katriel: […]
fosstodon.org
Original post on fosstodon.org
1348 48
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 12/05/2025
@bitprophet @SnoopJ I think it depends on your definition of "modern". If it's "right now" then the newer tools get releases out faster. But if it's "last year" then pip will have it (and pip releases faster than that, but it's obviously the easiest gauge).
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 12/05/2025
@SnoopJ @bitprophet I view Flit as "I can't have any dependencies for my build back-end for some reason", otherwise I would use Hatchling or pdm-backend.
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 10/05/2025
If you open an issue and use "GPT" as a verb then I'm going to assume your solution is wrong. Not because using AI is inherently bad, but because I'm going to assume you don't understand the problem or solution and you just "prompted" the problem away.
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 09/05/2025
Someone didn't vibe code the tests?
Screenshot of the OpenAI login screen erroring out because it expected Jason and instead got HTML.
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 07/05/2025
@mkennedy thought you might find this interesting about the Zen browser. sizeof.cat/post/web-browser-telemet…
fosstodon.org
Michael Kennedy (@mkennedy@fosstodon.org)
1.47K Posts, 1.81K Following, 4.59K Followers · A Python enthusiast and entrepreneur. Host of @talkpython@fosstodon.org and @pythonbytes@fosstodon.org podcasts, founder of Talk Python Training. #Python Software Foundation Fellow. Based in Portland, OR USA.
001 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 06/05/2025
The spec for pylock.toml is up! packaging.python.org/en/latest/spec…
035 5
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 06/05/2025
@glyph since carpal tunnel makes me a console gamer (at least when I can game again), it's an easy decision in the face of a gaming PC. 😉
100 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 04/05/2025
Would having a short domain act as a link tree and URL shortener for myself be worth it in this day and age? Is having some domain.tld/github redirect to my GitHub profile as a URL to verbally tell people, have on slides, etc. worth it? (I know asking to be talked out getting yet another domain […]
fosstodon.org
Original post on fosstodon.org
300 3
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 02/05/2025
@sethmlarson @glyph pip-tools via @webknjaz says they are definitely keen on implementing it.
100 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 02/05/2025
Oops I did it again, I wrote a new PEP, got lost in the comments, oh coder, coder. Oops, you thought I could stop, that I knew better, I'm not that intelligent. discuss.python.org/t/pre-pep-import… genius.com/Britney-spears-oops-i-di…
discuss.python.org
Pre-PEP: Import name metadata
As threatened promised, here is my next planned PEP (I haven’t bothered making it an official PEP yet in case the idea is considered downright bad, which would save me writing the PoC and translating this to reST). Abstract This PEP proposes extending the core metadata specification for Python packaging to include a new, repeatable field named Import-Name to record the import names that a project owns once installed. This also leads to the introduction of core metadata version 2.5. Motivation ...
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 02/05/2025
I thought I posted about the latest tool support for `pylock.toml`, but I can't find anything. So, there is now some form of support in: 1. UV 2. Pip 3. PDM 4. Pip-audit
111 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 01/05/2025
@offby1 let the rivalry begin! 😉
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 01/05/2025
@simon """Vibe coding does not mean “using AI tools to help write code”. It means “generating code with AI without caring about the code that is produced”. See Not all AI-assisted programming is vibe coding for my previous writing on this subject. This is a hill I am willing to die on. I fear it […]
fosstodon.org
Original post on fosstodon.org
001 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 30/04/2025
I posted the same thing on both Bluesky and Mastodon where I have 3,578 and 3,404 followers, respectively. The posts were done Apr 28 in the afternoon. The engagement levels were (Bluesky vs. Mastodon): - 1 vs. 0 comments - 2 vs. 0 reshares - 15 vs. 8 likes/favourites
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 30/04/2025
@offby1 I'm sure the answer is, "be explicit in your prompts". 😉
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 28/04/2025
My review of @feedbin after my 1 month free evaluation: it's good and I would consider leaving @Inoreader for it if (1) it has a "mark as you scroll past" feature, and (2) I got a reply to my emails sent to their support address. Otherwise it has a clean web UI on both desktop and mobile and the […]
fosstodon.org
Original post on fosstodon.org
100 1
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 28/04/2025
I think I might write a blog post about how Python determines what arguments to a function get bound to what parameter name (hint: it's all via `__code__` and can be reversed-engineered via locals in a stack frame).
000 0
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 28/04/2025
If I'm going to prefer Mastodon over Bluesky I need to: 1. Find a good host to run my own instance (otherwise the federation benefits don't seem quite so beneficial); recommendations welcome as I don't have the time to self-host 2. File a feature request to make it easy to take your filters […]
fosstodon.org
Original post on fosstodon.org
100 1