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.

Navigazione

  • indice
  • moduli |
  • successivo |
  • precedente |
  • Python »
  • 3.7.17 Documentation »
  • The Python Standard Library »
  • |

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.

  • struct — Interpret bytes as packed binary data
    • Functions and Exceptions
    • Format Strings
      • Byte Order, Size, and Alignment
      • Format Characters
      • Examples
    • Classes
  • codecs — Codec registry and base classes
    • Codec Base Classes
      • Error Handlers
      • Stateless Encoding and Decoding
      • Incremental Encoding and Decoding
        • IncrementalEncoder Objects
        • IncrementalDecoder Objects
      • Stream Encoding and Decoding
        • StreamWriter Objects
        • StreamReader Objects
        • StreamReaderWriter Objects
        • StreamRecoder Objects
    • Encodings and Unicode
    • Standard Encodings
    • Python Specific Encodings
      • Text Encodings
      • Binary Transforms
      • Text Transforms
    • encodings.idna — Internationalized Domain Names in Applications
    • encodings.mbcs — Windows ANSI codepage
    • encodings.utf_8_sig — UTF-8 codec with BOM signature

Argomento precedente

rlcompleter — Completion function for GNU readline

Argomento successivo

struct — Interpret bytes as packed binary data

Questa pagina

  • Riporta un Bug
  • Mostra sorgente

Navigazione

  • indice
  • moduli |
  • successivo |
  • precedente |
  • Python »
  • 3.7.17 Documentation »
  • The Python Standard Library »
  • |
© Copyright 2001-2023, Python Software Foundation.
La Python Software Foundation è una società senza scopo di lucro. Per favore, fai una donazione.
Ultimo aggiornamento giu 28, 2023. Trovato un bug?
Creato utilizzando Sphinx 2.3.1.