Wrapping Up

Intuitive Python — by David Muller (40 / 41)

The Pragmatic Programmers
The Pragmatic Programmers
3 min readSep 23, 2021

--

👈 Dodging Wildcard Variable Shadowing | TOC | You May Be Interested In… 👉

In this chapter we have discussed different strategies for hardening your code. In particular, you have learned how to install third-party pip packages securely, how to privatize variables in Python, how to keep a directory of tests/ organized, and the dangers of wildcard imports. You can use these lessons to improve your code base’s organization and help avoid dangerous classes of unexpected bugs.

No island will ever be built rigorously enough to contain all its dinosaurs, but you can always improve your system just a little bit more to make it resilient to life’s efforts to free itself.

You’ve reached the end of this book, but only the beginning of your possible experience with Python. You’ve covered a lot of ground already. In the beginning of this book, you explored Python’s interpreted nature and learned techniques for improving your code with static analysis tools like flake8. You moved on to touring some of the finer parts of the standard library including the collections module and tempfile. As the book progressed, you built meta-level understanding of Python projects including how to harness concurrent code and the inherent dangers of pickle and pip.

I’ve been writing Python for my entire adult life, and I still find myself learning new patterns, discovering new tools, yelling in frustration at some inane bug, and experiencing an intoxicating high after fixing that bug. I hope you can experience the same.

Footnotes

[87] https://pypi.org/project/tzdata/

[88] https://media.djangoproject.com/pgp/Django-2.2.checksum.txt

[89] https://pypi.org/

[90] https://pypi.org/project/backports.zoneinfo/0.2.1/#files

[91] https://pipenv.pypa.io/en/latest/

[92] https://python-poetry.org

[93] https://www.anaconda.com

[94] https://docs.docker.com/get-docker/

[95] https://github.com/DavidMuller/intuitive-python-book

[96] https://stackoverflow.com/a/53976736

Copyright © 2021, The Pragmatic Bookshelf.

Thank you!

How did you enjoy this book? Please let us know. Take a moment and email us at support@pragprog.com with your feedback. Tell us your story and you could win free ebooks. Please use the subject line “Book Feedback.”

Ready for your next great Pragmatic Bookshelf book? Come on over to https://pragprog.com and use the coupon code BUYANOTHER2021 to save 30% on your next ebook.

Void where prohibited, restricted, or otherwise unwelcome. Do not use ebooks near water. If rash persists, see a doctor. Doesn’t apply to The Pragmatic Programmer ebook because it’s older than the Pragmatic Bookshelf itself. Side effects may include increased knowledge and skill, increased marketability, and deep satisfaction. Increase dosage regularly.

And thank you for your continued support,

The Pragmatic Bookshelf

images/Coupon.png

👈 Dodging Wildcard Variable S hadowing | TOC | You May Be Interested In… 👉

Intuitive Python by David Muller can be purchased in other book formats directly from the Pragmatic Programmers. If you notice a code error or formatting mistake, please let us know here so that we can fix it.

Unlisted

--

--

The Pragmatic Programmers
The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.