6. The Standard Library
Overview
By the end of this chapter, you will be able to utilize Python's standard library to write efficient code; use multiple standard libraries to write code; create and manipulate files by interacting with the OS filesystem; evaluate dates and times efficiently without falling into the most common mistakes and set up applications with logs to facilitate future troubleshooting.
Introduction
In the previous chapters, you saw how we can create our own classes incorporating logic and data. Yet, you often don't need to do that — you can rely on the standard library's functions and classes to do most of the work.
The Python standard library consists of modules that are available on all implementations of the language. ...
Get The Python Workshop 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.