PyTricks

Newsletter Image

Messages

4/22/2020
4 : 6

A "Pythonic" rant?

Hey Reader, "Why is Python dependency management so sh*t?" This is a quote that I recently heard from another developer. You know I *love* Python so hearing this instantly made me feel
4/22/2020
2 : 6

[🐍PyTricks]: Function argument unpacking in Python

# Why Python Is Great: # Function argument unpacking def myfunc(x, y, z): print(x, y, z) tuple_vec = (1, 0, 1) dict_vec = {'x': 1, 'y': 0, 'z': 1} >>> myfunc(*tuple_vec
4/21/2020
4 : 6

last call

Python Tricks: The Book is available at a 33% discount Click here to learn more and claim your discount Hey Reader, This is the sentence that started it all: "I don't even feel like I've
4/21/2020
3 : 6

How we make our custom Python mugs & other swag

Hey Reader, In my last email I told you about Nerdlettering.com, the "swag store" for Pythonistas that my wife Anja and I launched. It's been a ton of fun (and work) getting that store
4/20/2020
4 : 6

What Python developers say about "Python Tricks: The Book"

Hey Reader, I wanted to share a few things that other Python developers have said about "Python Tricks: The Book." Here's what the Python community had to say: ~~~ “I first heard about
4/19/2020
4 : 6

I don’t even feel like I’ve scratched the surface of what I can do with Python

Python Tricks: The Book is available at a 33% discount Click here to learn more and claim your discount Hey Reader, There's a talented Python web developer I know of—I'll call him “Mark”.
4/19/2020
2 : 6

[🐍PyTricks]: You can use "json.dumps()" to pretty-print Python dicts

... (as an alternative to the "pprint" module) # The standard string repr for dicts is hard to read: >>> my_mapping = {'a': 23, 'b': 42, 'c': 0xc0ffee} >
4/17/2020
4 : 6

[Python Mastery] What Pythonistas can learn from bestselling authors

Hey Reader, I just finished reading Stephen King's "On Writing." It's a great little book where he shares some of the writing advice and stories he's picked up over the course of
4/16/2020
10 : 32

[🐍PyTricks]: Try running "import this" inside a Python REPL ...

>>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is
4/15/2020
4 : 6

[Python Mastery] Learn Python in 21 days!!!!11 (what a lie)

Hey Reader, One of the first programming books I ever bought was "Teach Yourself C in 21 Days." This four pound tome came with a CD-ROM that included an ancient version (3.1) of the Borland
4/14/2020
4 : 6

[Python Mastery] The secret to "ethical self-promotion"?

Hey Reader, Here's some food for thought: There's a difference between *doing* a great job as a Python developer, and *to be seen doing* a great job. Being a skilled developer among peers—and
4/14/2020
3 : 6

Finally, a reason to attend morning stand-ups again

Hey Reader, Do you love working with Python? I do! A smart human once said "the language you speak affects what you can think" And to be honest with you, I'd rather speak & think
4/13/2020
15 : 16

[Python Mastery] What does it mean to "master" Python?

Hey Reader, A couple of years ago I'd become quite interested in martial arts. Hours upon hours of watching "The Karate Kid" growing up must've taken their toll on me... And so, I
4/13/2020
6 : 36

In love, war, and open-source—never give up

Hey Reader, I'll never forget launching my first open-source project and sharing it on Reddit… I had spent a couple of days at my parents' place over Christmas that year and decided to use some
4/13/2020
2 : 36

how can I help you grow your Python skills and career even more?

Hey Reader, I hope you've been enjoying a beautiful weekend! Over the last few days I started thinking about ways to improve the Python tutorials, the newsletter, and the YouTube channel at dbader.
4/13/2020
2 : 6

[🐍PyTricks]: Python's namedtuples can be a great alternative to defining a class manually

# Why Python is Great: Namedtuples # Using namedtuple is way shorter than # defining a class manually: >>> from collections import namedtuple >>> Car = namedtuple('Car', '
4/11/2020
4 : 6

is this The True Power Of Python?

Hey Reader, Recently a newsletter member emailed me and said something that really resonated: ~~~ I want to learn how can I use the true power of Python, not just copy logic I already acquired from
4/11/2020
2 : 6

[🐍PyTricks]: The get() method on Python dicts and its "default" arg

# The get() method on dicts # and its "default" argument name_for_userid = { 382: "Alice", 590: "Bob", 951: "Dilbert", } def greeting(userid): return "Hi %s
4/10/2020
2 : 6

[🐍PyTricks]: picking up the basics of Python was the easy part?

Hey Reader, Ever caught yourself thinking "I don't even feel like I've scratched the surface of what I can do with Python?" I know I have. It didn't look like it in the beginning,
4/8/2020
4 : 6

A path to "Python mastery"

Hey Reader, Ever caught yourself thinking "I don't even feel like I've scratched the surface of what I can do with Python"? I know I have. It didn't look like it in the beginning,