Wrapping Up
In this chapter you’ve learned about some common traps to avoid in Python. In particular, you are primed to favor json (and other alternative libraries) over pickle, to always use timezone aware datetime objects in UTC, and to carefully avoid using mutable values like lists as defaults in your function signatures.
Next, we’ll explore how to shepherd your Python projects into green fields even as you face external challenges and unexpected problems. Among other topics, you’ll learn how to securely install third-party packages and keep your variables from being unexpectedly clobbered or shadowed.
Get Intuitive Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.