4.3. Other Built-in Types

  • Type

  • None

  • File

  • Function

  • Module

  • Class

  • Class Instance

  • Method

These are some of the other types you will interact with as you develop as a Python programmer. We will also cover these in Chapters 9, 11, 12, and 13 with the exception of the Type and None types, which we will discuss here.

4.3.1. Types and the type() Built-in Function

It may seem unusual perhaps, to regard types themselves as objects since we are attempting to just describe all of Python's types to you in this chapter. However, if you keep in mind that an object's set of inherent behaviors and characteristics (such as supported operators and built-in methods) must be defined somewhere, an object's type is a logical place for this information. The amount of information ...

Get Core Python Programming 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.