This document is for an old version of Python that is no longer supported. You should upgrade, and read the Python documentation for the current stable release.

7. Binary Data Services

The modules described in this chapter provide some basic services operations for manipulation of binary data. Other operations on binary data, specifically in relation to file formats and network protocols, are described in the relevant sections.

Some libraries described under Text Processing Services also work with either ASCII-compatible binary formats (for example, re) or all binary data (for example, difflib).

In addition, see the documentation for Python’s built-in binary data types in Binary Sequence Types — bytes, bytearray, memoryview.

Previous topic

6.8. rlcompleter — Completion function for GNU readline

Next topic

7.1. struct — Interpret bytes as packed binary data

This Page