From a302202e617dc87e5cfee8a95150ceb67f714bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 29 Dec 2018 16:42:48 +0100 Subject: [PATCH] Struct --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 024e2b6..d196ef6 100644 --- a/README.md +++ b/README.md @@ -868,15 +868,15 @@ Struct ------ **This module performs conversions between Python values and C struct represented as Python Bytes object.** ```python - = struct.pack('', [, , ...]) - = struct.unpack('', ) +from struct import pack, unpack, calcsize ``` -### Example ```python ->>> from struct import pack, unpack, calcsize + = pack('', [, , ...]) + = unpack('', ) ``` +### Example ```python >>> pack('hhl', 1, 2, 3) b'\x00\x01\x00\x02\x00\x00\x00\x03'