Sign in

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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 27/04/2025
Is there an Android app that will scan my installed apps list and tell me there's actually a web app I could be using instead?
000
Reposted by Brett Cannon
Christopher Neugebauer @fedi.chrisjrn.fyi · 25/04/2025
I'm about to go to bed before I set up for a #Python event that celebrates the joy of technology and the responsibility we have to use the skills we have to improve the world. A while ago, I caught the news that former #Python release manager, @swearyanthony is in the ICU in a critical […]
social.coop
Original post on social.coop
115
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 24/04/2025
Thinking about print debugging and ways to specify what you want logged is giving me aspect-oriented programming flashbacks.
100
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 21/04/2025
Uv has a PR open to add pylock.toml support! github.com/astral-sh/uv/pull/12992
github.com
Add `pylock.toml` to `uv pip install` and `uv pip sync` by charliermarsh · Pull Request #12992 · astral-sh/uv
Summary We accept pylock.toml as a requirements file (e.g., uv sync pylock.toml or uv pip install -r pylock.toml). When you provide a pylock.toml file, we don't allow you to provide other requi...
000
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 16/04/2025
Thanks to @sbidoul , pip 25.1 will have a `pip lock` command that uses `pylock.toml`! github.com/pypa/pip/pull/13213 pip-tools has started looking at if they can leverage it. github.com/jazzband/pip-tools/issue… pip-audit has support in 2.9.0 […]
fosstodon.org
Original post on fosstodon.org
003
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 11/04/2025
@brianokken The latest Python Bytes episode hasn't shown up at @pythonbytes , but to answer your question about the purpose of `[packages.tool]`, it's to set tool-specific details for each package entry instead of making tools come up with their own way of mapping tool-specific data to each […]
fosstodon.org
Original post on fosstodon.org
000
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 10/04/2025
t-strings are coming! peps.python.org/pep-0750 discuss.python.org/t/pep750-templat…
peps.python.org
PEP 750 – Template Strings | peps.python.org
This PEP introduces template strings for custom string processing.
01313
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 07/04/2025
Anyone know of an amp for ceiling speakers that does multi-point Bluetooth? Our house came with www.arylic.com/products/a30-wireles… , but we can only connect one device at a time which is annoying when we want to use our Bluetooth turntable.
arylic.com
A30+ 30W x 2 WiFi Mini Stereo Amplifier
Upgrade your speakers into a wireless home system by our mini stereo amplifier, which allows your streaming sound by WiFi, Bluetooth 5.0, AirPlay, Spotify connect.
000
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 02/04/2025
I apologize for my acting in this video. fosstodon.org/@ThePSF/1142631692803…
fosstodon.org
Python Software Foundation (@ThePSF@fosstodon.org)
BREAKING! Guido van Rossum, the legendary creator of Python, has officially reinstated himself as Python’s Benevolent Dictator for Life (BDFL) - but this time, he’s bringing some new quirks with him. Feat. Guido van Rossum, Barry Warsaw, @brettcannon and @mariatta Stay tuned for the Python documentary coming this summer! https://www.youtube.com/watch?v=wgxBHuUOmjA
000
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 31/03/2025
PEP 751 has been accepted! peps.python.org/pep-0751 This means #Python now has a lock file standard that can act as an export target for all tools that can create some sort of lock file. And for some tools the format can act as their primary lock file format as well instead of some […]
fosstodon.org
Original post on fosstodon.org
3517
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 27/03/2025
Any of the other @Vivaldi users getting annoyed by the various opt-out stuff getting pushed in updates? Like the "share Vivaldi" button in the extensions section or the Proton VPN stuff (I use @mullvadnet already)? I already stopped sponsoring the project over this since I wanted to pay for a […]
fosstodon.org
Original post on fosstodon.org
201
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 19/03/2025
I FINALLY asked for pronouncement on PEP 751 -- lock files for #Python : peps.python.org/pep-0751 It does contain what is, I believe, necessary to have multi-use lock files. If that gets to stay in (@pfmoore has said that at this point he will ask me to remove stuff instead of […]
fosstodon.org
Original post on fosstodon.org
101
Reposted by Brett Cannon
Ben Werdmuller @ben.werd.social.ap.brid.gy · 16/03/2025
This is absurdly great, but I haven't read a single blog post or news article about it. A fully open source, offline-first alternative to Notion that's a collab between the French and German governments because they want to host documentation securely and on their own terms. THIS is what Europe […]
werd.social
Original post on werd.social
2347
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 07/03/2025
Due to the actions of the US government towards Canada, I will not be attending #PyCon US this year. snarky.ca/why-i-wont-be-attending-p…
snarky.ca
Why I won't be attending PyCon US this year
I normally don't talk about politics here, but as I write this the US has started a trade war with Canada (which is partially paused for a month, but that doesn't remove the threat). It is so infuriating and upsetting that I will be skipping PyCon US entirely for the
5524
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 06/03/2025
I updated the lock file example in PEP 751 after updating my PoC: peps.python.org/pep-0751/#example The most exciting thing is the `packages.attestation-identities]]` table thanks to attrs (and so thanks to [@hynek for using Trusted Publishers). Hopefully [@yossarian and the other PEP […]
fosstodon.org
Original post on fosstodon.org
001
Brett Cannon @brettcannon.fosstodon.org.ap.brid.gy · 05/03/2025
Mousebender 2025.0 is out with PEP 740 support (index support for digital attestations). pypi.org/project/mousebender
pypi.org
Client Challenge
000