struct: The C Struct Module

1 Description

The Python struct module is used to convert between Python values and C structs represented as Python bytes objects. This conversion has two primary applications. The first application is when you would like to perform data exchange with a external source such as a network connection or file, the second application is performing a data exchange between the Python application and the C layer.

This document was last updated: