Episode #259: Design Patterns That Don't Translate to Python β The Real Python Podcast
Do the design patterns learned in other programming languages translate to coding in Python? Christopher Trudeau is back on the show this week, bringing another batch of PyCoder's Weekly articles andβ¦
On this week's episode, @digiglean.bsky.social and I talk about lots of releases, using coverage to make sure your tests are running, t-strings, and much more.
With content from: @willmcgugan.bsky.social @simonwillison.net @hugovk.dev @martinfowler.com @mitsuhiko.at and others.
01.08.2025 15:34 β π 7 π 3 π¬ 0 π 0
Diagram showing that the keyword `elif` and an `else` followed by an `if` are treated the same at the level of the AST in Python.
The Python keyword `elif` is a lie!
But they don't want you to know that!
You are welcome.
01.08.2025 15:22 β π 2 π 0 π¬ 0 π 0
YouTube video by Rodrigo ππ
What the Python?! β Lightning talk by Rodrigo GirΓ£o SerrΓ£o at PyCon Portugal 2025
What the Python?!
At PyCon Portugal π΅πΉ I gave a lightning talk (5-min talk) where I showed a bunch of seemingly random Python behaviours.
Maybe 6 or 7.
Watch the talk and let me know how many of these you already knew π
youtu.be/QxfdLDyCypI
28.07.2025 19:55 β π 3 π 0 π¬ 0 π 0
Just found out about `pp` and `pformat`.
28.07.2025 19:04 β π 1 π 0 π¬ 0 π 0
Glad I could help :D
28.07.2025 19:04 β π 0 π 0 π¬ 0 π 0
Thanks for letting me know!
28.07.2025 19:03 β π 0 π 0 π¬ 0 π 0
Printing the dictionary with keys sorted sounds kinda nice for readability π€·
No?
28.07.2025 19:03 β π 0 π 0 π¬ 1 π 0
Does anyone here ever use `pprint.pprint`?
I always forget this exists...
28.07.2025 12:06 β π 2 π 0 π¬ 6 π 0
Enjoy!
26.07.2025 16:47 β π 1 π 0 π¬ 0 π 0
clicking a number in the grid could highlight all other instances of the same number.
That'd make it easier to scan the grid :D
These are just random thoughts, though.
26.07.2025 16:47 β π 0 π 0 π¬ 1 π 0
This is fun, thanks for the game!
It took me a while to realise that β0β is a valid number in this sudoku version π€¦
Would be cool if the numbers in the clickable input region got grayed out as you complete them.
Also, since the grid is huge and it takes ages to scan,
26.07.2025 16:47 β π 0 π 0 π¬ 1 π 0
Nice :D I don't use fish, though π€ͺ
26.07.2025 16:23 β π 1 π 0 π¬ 0 π 0
Use
`pbcopy < file.txt`
To copy the contents of the file.txt to your clipboard.
(MacOS-only, I believe.)
26.07.2025 10:50 β π 3 π 0 π¬ 1 π 0
Congratulations & good luck! Thankfully, you still have some time to prepare :D
(Side quest: come up with 3.16 stickers that are nicer than @hugovk.dev's 3.14 stickers!)
26.07.2025 09:37 β π 3 π 0 π¬ 1 π 0
Join the Python π Lisbon Meetup Discord Server!
Discord server for the Python Lisbon Meetup community. | 3 members
We're announcing this βofficiallyβ at the @pyconpt.bsky.social lightning talks today!
If you'd like to stay in touch to join our monthly meetings, here's a Discord link π
discord.gg/DCNEYDKw9s
25.07.2025 13:23 β π 0 π 0 π¬ 0 π 0
An image generated by AI that contains the title βPython Lisbon Meetupβ written at the top. The image is in shades of blue and yellow, alluding to the Python logo. The blue and yellow elements are references to the city of Lisbon, Portugal.
Who can guess what's coming? π€
π΅πΉ β€οΈ π
25.07.2025 13:23 β π 4 π 1 π¬ 1 π 0
A picture in a large hall showing a PyCon Portugal banner that reads βWelcome to PyCon Portugal 2025β.
A poorly-framed picture showing 4 PyCon Portugal organisers in the distance and a screen next to them showing the message βWelcome to the 4th edition of PyCon Portugalβ
PyCon Portugal π΅πΉ is starting!
(A bit late, but it's starting nonetheless!)
Wish me luck β hopefully no one else cancels their talk last-minute!
P.S. I need an idea for a lightning talk... What do you suggest?
24.07.2025 08:26 β π 9 π 0 π¬ 0 π 0
Table that shows all combinations of using \b and \B around a word pattern, showing how to match standalone words, infixes, suffixes, and prefixes, with regular expressions.
Here's a table with the base word βlegalβ and all combinations of \b & \B around the word.
23.07.2025 12:29 β π 1 π 0 π¬ 0 π 0
Now, you do π
This was the tip I sent yesterday to my Python drops ππ§ newsletter.
Most folks also didn't know about it.
23.07.2025 12:13 β π 1 π 0 π¬ 0 π 0
Just scheduled the 100th Python drop! ππ§
Over the past ~20 weeks I've sent 100 short, actionable Python tips to folks who want to keep improving their Python skills.
If you don't want to miss any more tips, sign up here π mathspp.com/drops
23.07.2025 12:11 β π 2 π 0 π¬ 0 π 0
By the way, by default, \b and \B consider βword charactersβ to be alphanumeric characters and the underscore.
So \b and \B work really well with punctuation, too.
Pretty neat :D
23.07.2025 12:10 β π 0 π 0 π¬ 1 π 0
Yesterday I learned that you can use \B in regular expressions to match _inside_ words.
So, combining \b and \B you can match prefixes or suffixes.
For example:
\bwater\B β matches βwaterβ as a prefix
I like watermelon β
Drink water every day β
Is "tidewater" a real word? β
23.07.2025 10:47 β π 6 π 1 π¬ 2 π 0
Markdown Here
Markdown Here is an extension for Chrome, Firefox, and Thunderbird that allows you to write email in Markdown
Does anyone use anything similar to βMarkdown Hereβ markdown-here.com that lets you write your emails with Markdown and then uses the markdown syntax to format your email appropriately?
I had never heard about this but βMarkdown Hereβ doesn't work for Safari π¬
22.07.2025 22:03 β π 0 π 0 π¬ 0 π 0
Sem problema! A oferta Γ© ΓΊtil Γ mesma.
21.07.2025 13:38 β π 1 π 0 π¬ 0 π 0
I meant Friday π
21.07.2025 13:37 β π 0 π 0 π¬ 0 π 0
Thank you for stepping up, Luciano!
Donβt take me wrong but Iβll try to find someone to present in person.
Iβll reach out to you in ~48 hours if I fail or sooner if I succeed!
21.07.2025 13:32 β π 0 π 0 π¬ 1 π 0
Looking down on many tables of sprinters.
Sprinters at their laptops.
Sprinters at their laptops.
An array of snacks and sweets including one with a written warning poster: "VERY SPICY. EAT ONE A TIME. CAROLINA RIPPERS. WASH FINGERS." Plus two types of Finnish salmiakki which should have a warning, and a big rainbow unicorn balloon.
Thanks to everyone for taking part in the #CPython sprint at #EuroPython2025!
Across all CPython repos this weekend:
* 122 PRs created (69 the previous weekend)
* 79 PRs merged (65)
* countless invaluable in-person discussions (a few?)
#EuroPython #Python #sprint #Prague
21.07.2025 12:53 β π 20 π 8 π¬ 0 π 0
You really can't please everyone.
I'm going through the feedback for my EuroPython talk:
Many comments like:
βAwesome pacing, great examplesβ
βWell pacedβ
βClear examplesβ
...
One comment:
βTalk was too slow and I would have liked better examplesβ
π€ͺπ€‘
21.07.2025 11:15 β π 7 π 0 π¬ 1 π 0
Who's up for showing up at @pyconpt.bsky.social this Thursday to give a 30 minute talk?
We just had a last-minute cancellation!
21.07.2025 10:06 β π 3 π 2 π¬ 2 π 1
I am REALLY excited about the full documentary that's coming out this Summer.
21.07.2025 10:06 β π 3 π 0 π¬ 0 π 0
Helping you become more confident with Python and Pandas since 1995.
β’Β Courses: LernerPython.com
β’Β Newsletters: BetterDevelopersWeekly.com β’ BambooWeekly.com
β’Β Books: PythonWorkout.com β’ PandasWorkout.com
β’Β Videos: YouTube.com/reuvenlerner
Kiwi PyCon is New Zealand's national Python conference.
https://kiwipycon.nz
Computational linguist from Sydney and Berlin.
Author of the spacy.io NLP tools
Founder and CTO @explosion.ai
LinkedIn: linkedin.com/in/honnibal
Blog: honnibal.dev
@python.org staff; opinions and tiny dog my own. she/her
SPy creator, HPy founder, PyPy core dev, PyScript core dev, doing Python, compilers and WASM stuff at @anacondainc.bsky.social
Also on:
- github.com/antocuni
- https://mastodon.social/@antocuni
- https://twitter.com/antocuni
Creative Geek / Surface Pattern Designer / #WebDev #WomenInTech / I write tutorials, design, and care about facts & science / Passionate about OSS, STEM & Arts / π / in Sydney π¦πΊ π¦ / "This is your democracy. Make it. Protect it. Pass it on." β TM
Python nerd with a special interest for compilers. CPython core developer. PyGreece organizer. Working @Quansight-Labs. He/him.
A bit of computer.
A modicum of music.
Plenty of pancakes.
Formerly: engineering lead at Pioneer Square Labs. Currently: βengineeringβ βleadβ in my own garage.
https://davepeck.org/
geofft on most other websites. Advocate for Rust in your kernel, protected bike lanes on your streets, and other ways of saving lives through infrastructure.
Machine-learner, meat-learner, research scientist, AI Safety thinker. Model trainer, skeptical adorer of statistics.
Co-author of: Malware Data Science
ζ²γγΏγγγγγγ«
Pythonista/Djangonaut/DjangCon US/PyCon US
DEFNA NorAm Ambassador
Software Engineer Professionally Trained In Capitalism β’οΈ
δΈθ―, νλ₯
he/him
@blackpythondevs.bsky.social co-founder
African descent. Executive Director at @TheCarpentries. Lifetime Member of @NSBE Available for speaking engagements. My thoughts/posts are my own.
`def code(bugs) -> π: yield from code(bugs)`
#Python Software Foundation supporter & CPython Core Dev.
Always riding a bicycle. π΄π» #bikelife #bikecommuter
I'm _probably_ not really here / name-ποΈ-ing #markdown
Developer Advocate | Former Lawyer
Python technical coach, developer, and PyRVA co-founder.
https://everydaysuperpowers.dev/
middle child, creator of anywidget.dev
building @marimo.io; prev @harvard.edu
Content on pt-br, sometimes en
Caerbannog-lang
Minha toca => https://computaria.gitlab.io/blog/
Javeiro falhando miseravelmente em ficar fora de redes sociais =/
Bora aprender ciΓͺncia da computaΓ§Γ£o ou matemΓ‘tica? @ulivre.dev
Quansight is a data, science, and engineering firm that specializes in solving complex, data-related problems by leveraging the open source software at the foundation of innovation in AI and ML.