Christopher Trudeau
@trudeau.dev
550 followers 290 following 120 posts
Co-Host The Real Python Podcast. Author of Django In Action. Fractional CTO. Komodo dragon wrestler. Profile perjurer.
Posts Media Videos Starter Packs
Reposted by Christopher Trudeau
trudeau.dev
I've been looking for a good Hoobijag tutorial. Anything you can recommend?
Reposted by Christopher Trudeau
realpython.com
📰🐍 Get the best Python links of the week: PyCoder’s Weekly Issue #700: Special Issue #700! (Sept. 16, 2025) pycoders.com/issues/700
PyCoder’s Weekly | Issue #700
Special Issue #700!
pycoders.com
Reposted by Christopher Trudeau
realpython.com
🐍📩 Pycoders Weekly (Issue 698) — Capturing Stdout, REPL Color, Feature History, and More

pycoders.com/issues/698
trudeau.dev
"Bored now!" Great line. Evil Willow rules.
trudeau.dev
We started building this course before we knew about the documentary, so an odd little coincidence. Want to know the history of #Python and its people? Watch the doc. Want to learn about when which features got added? Watch this code conversation with @digiglean.bsky.social
A History of Python Versions and Features – Real Python
Explore Python’s evolution from the 1990s to today with a brief history and demos of key features added throughout its lifetime.
buff.ly
trudeau.dev
Yeah, IIRC, list preallocate in chunks, whereas arrays are precise in size. I suspect in the early days arrays were key to performance
trudeau.dev
I have a sticky note on my monitor that says "Record!" I do this all the time. Send them into breakout rooms for an exercise, pause to avoid 15 min of dead air, forget to unpause when they come back in. I've learned to tell the students to watch for it and warn me, that way they share the blame :)
trudeau.dev
Without testing, I'd suspect there is a performance gain over lists as there is one less pointer allocation, but list is so common that it has been optimized a lot, so even that might not be true.
trudeau.dev
You may be right. My initial reaction was "sure I use them when doing network level stuff", but then realized I used `bytearray` instead. Then I thought they might have been a subclass, but nope. As with most batteries, somebody somewhere probably thinks they're invaluable :)
trudeau.dev
Their cousin `bytearray` is very useful when doing low level stuff.
Reposted by Christopher Trudeau
talkpython.fm
New episode just dropped: Celebrating #Django's 20th Birthday With Its Creators with Jeff Triplett, @simonwillison.net, @wsvincent.bsky.social, Adrian Holovaty, @thibaudcolas.bsky.social, and @mkennedy.codes #python

talkpython.fm/episodes/sho...
talkpython.fm
Reposted by Christopher Trudeau
realpython.com
🐍📩 Pycoders Weekly (Issue 696) — Namespaces, with, functools.Placeholder, and More

buff.ly/8uTb4cG
trudeau.dev
Yep, I tend to favour breaking things up, but there is always that voice in the back of my head
trudeau.dev
Creating a function has a cost; function calls in Python aren't as cheap as their innards. Variables on the other hand mostly get compiled away so readability should win out.
Reposted by Christopher Trudeau
realpython.com
📰🐍 Get the best Python links of the week: PyCoder’s Weekly Issue #696: Namespaces, with, functools.Placeholder, and More (Aug. 26, 2025) pycoders.com/issues/696
PyCoder’s Weekly | Issue #696
Namespaces, with, functools.Placeholder, and More
pycoders.com
trudeau.dev
Are you writing #Textual apps? Do you want the ability to make one of your widgets look like it is on fire? Well, do I have a very-alpha library for you. Textual Effects provides transition effects similar to those in some presentation software. Check it out. Bugs/PRs welcome.
GitHub - cltrudeau/textual-effects: A transitions effects library for Textual
A transitions effects library for Textual. Contribute to cltrudeau/textual-effects development by creating an account on GitHub.
buff.ly
trudeau.dev
Yeah, the typical use is resource management. But with testing I find them really helpful for "undo this thing whether the test passes or fails"