[🐍PyTricks]: Python's namedtuples can be a great alternative to defining a class manually
Preview text: # Why Python is Great: Namedtuples # Using namedtuple is way shorter than # defining a…
No image available for this email.
- Subject
- [🐍PyTricks]: Python's namedtuples can be a great alternative to defining a class manually
- Preview text
- # Why Python is Great: Namedtuples # Using namedtuple is way shorter than # defining a…
- From
- mail@
dbader.org - Brand
- Dan Bader
- ESP
- Drip
- Sent
- Fri Mar 20, 2026, 12:00 PM ET
- Sent to
- danbader.com, dbader.org
- Size
- 30 KB
- Images
- 2
- Links
- 5, 2 of them buttons
- Subject length
- 90 characters
Sent just before and after
| Oct 12, 2026 3:04 AM | [🐍PyTricks]: Merging two dicts in Python 3.5+ with a single expression | |
| Mar 21, 2026 2:00 PM | 5 tips for getting great at Python, fast | |
| Mar 20, 2026 4:30 PM | In love, war, and open-source—never give up | |
| Mar 20, 2026 12:00 PM | [🐍PyTricks]: Python's namedtuples can be a great alternative to defining a class manually (this email) | |
| Mar 18, 2026 2:00 PM | is this The True Power Of Python? | |
| Mar 18, 2026 12:00 PM | [🐍PyTricks]: The get() method on Python dicts and its "default" arg | |
| Mar 17, 2026 12:00 PM | [🐍PyTricks]: picking up the basics of Python was the easy part? |
More from Dan Bader
All Dan Bader emailsWhy you need an efficient Python development setup
Nov 3, 2026 2:00 PM
[🐍PyTricks]: Python's shorthand for in-place value swapping
Nov 3, 2026 12:00 PM
[🐍PyTricks]: Measure the execution time of small bits of Python code with the "timeit" module
Oct 31, 2026 12:00 PM
Oct 30, 2026 4:30 PM
the Python ecosystem + an easy mistake to make
Oct 30, 2026 2:00 PM
[🐍PyTricks]: Function argument unpacking in Python
Oct 28, 2026 12:00 PM
Hindsight is 20/20 for Pythonistas
Oct 27, 2026 2:00 PM
[🐍PyTricks]: You can use "json.dumps()" to pretty-print Python dicts
Oct 25, 2026 12:00 PM

![[🐍PyTricks]: Python's shorthand for in-place value swapping - email from Dan Bader](https://img.theysentit.com/dan-bader/6334755.t.jpg)
![[🐍PyTricks]: Measure the execution time of small bits of Python code with the "timeit" module - email from Dan Bader](https://img.theysentit.com/dan-bader/6146431.t.jpg)


![[🐍PyTricks]: Function argument unpacking in Python - email from Dan Bader](https://img.theysentit.com/dan-bader/5903702.t.jpg)

![[🐍PyTricks]: You can use "json.dumps()" to pretty-print Python dicts - email from Dan Bader](https://img.theysentit.com/dan-bader/5705124.t.jpg)