From 9e387f5eb334a4edc4003b5b914e86c0827e8a45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 10 Sep 2019 17:34:49 +0200 Subject: [PATCH] Struct --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 703a4c1..9ce013a 100644 --- a/README.md +++ b/README.md @@ -1892,7 +1892,7 @@ def write_bytes(filename, bytes_obj): Struct ------ -* **Module that performs conversions between a sequence of numbers and a C struct, represented as a Python bytes object.** +* **Module that performs conversions between a sequence of numbers and a bytes object.** * **Machine’s native type sizes and byte order are used by default.** ```python diff --git a/index.html b/index.html index 7b57028..32df915 100644 --- a/index.html +++ b/index.html @@ -1681,7 +1681,7 @@ db = connector.connect(host=<str>, user=<str>, password=<str>,

#Struct

from struct import pack, unpack, iter_unpack
 <bytes>  = pack('<format>', <num_1> [, <num_2>, ...])