[🐍PyTricks]: The get() method on Python dicts and its "default" arg
Preview text: # The get() method on dicts # and its "default" argument name_for_userid = { 382 : "Alice"…
No image available for this email.
- Subject
- [🐍PyTricks]: The get() method on Python dicts and its "default" arg
- Preview text
- # The get() method on dicts # and its "default" argument name_for_userid = { 382 : "Alice"…
- From
- mail@
dbader.org - Brand
- Dan Bader
- ESP
- Drip
- Sent
- Wed Mar 18, 2026, 12:00 PM ET
- Sent to
- danbader.com, dbader.org
- Size
- 30 KB
- Images
- 2
- Links
- 5, 3 of them buttons
- Subject length
- 68 characters
Sent just before and after
| 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 | |
| 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 (this email) | |
| Mar 17, 2026 12:00 PM | [🐍PyTricks]: picking up the basics of Python was the easy part? | |
| Mar 15, 2026 2:00 PM | A path to "Python mastery" | |
| Mar 15, 2026 12:00 PM | [🐍PyTricks]: How to sort a Python dict by value |
More from Dan Bader
All Dan Bader emails[🐍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
Oct 24, 2026 2:00 PM
[🐍PyTricks]: Try running "import this" inside a Python REPL ...
Oct 22, 2026 12:00 PM
![[🐍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)

![[🐍PyTricks]: Try running "import this" inside a Python REPL ... - email from Dan Bader](https://img.theysentit.com/dan-bader/5526097.t.jpg)