O'Reilly logo

The Python 3 Standard Library by Example, Second Edition by Doug Hellmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 18. Language Tools

In addition to the developer tools covered in an earlier chapter, Python includes modules that provide access to its internal features. This chapter covers some of the tools for working in Python, regardless of the application area.

The warnings (page 1279) module is used to report non-fatal conditions or recoverable errors. A common example of a warning is the DeprecationWarning that is generated when a feature of the standard library has been superseded by a new class, interface, or module. Use warnings to report conditions that may need user attention, but are not fatal.

Defining a set of classes that conform to a common API can be a challenge when the API is defined by someone else or uses a lot of methods. A popular ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required