Skip to Content
Modern Python Standard Library Cookbook
book

Modern Python Standard Library Cookbook

by Alessandro Molina
August 2018
Intermediate to advanced
366 pages
10h 14m
English
Packt Publishing
Content preview from Modern Python Standard Library Cookbook

Introduction

When writing a new tool, one of the first needs that arises is making it able to interact with the surrounding environment—to display results, track errors, and receive inputs.

Users are accustomed to certain standard ways a command-line tool interacts with them and with the system, and following this standard might be time-consuming and hard if done from scratch.

That's why the standard library in Python provides tools to achieve the most common needs in implementing software that is able to interact through a shell and through text.

In this chapter, we will see how to implement some forms of logging, so that our program can keep a log file; we will see how to implement both options-based and interactive software, and then we ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced Python Development: Using Powerful Language Features in Real-World Applications

Advanced Python Development: Using Powerful Language Features in Real-World Applications

Matthew Wilkes

Publisher Resources

ISBN: 9781788830829Supplemental Content