diff --git a/README.md b/README.md index e0e4991..3ed3892 100644 --- a/README.md +++ b/README.md @@ -1879,7 +1879,7 @@ Struct * **Machine’s native type sizes and byte order are used by default.** ```python -from struct import pack, unpack, iter_unpack, calcsize +from struct import pack, unpack, iter_unpack = pack('', [, , ...]) = unpack('', ) = iter_unpack('', ) diff --git a/index.html b/index.html index 609f53a..49d62e0 100644 --- a/index.html +++ b/index.html @@ -1666,7 +1666,7 @@ cursor.execute('<query>', <dict/namedt

#Struct

  • Module that performs conversions between a sequence of numbers and a C struct, represented as a Python bytes object.
  • Machine’s native type sizes and byte order are used by default.
  • -
from struct import pack, unpack, iter_unpack, calcsize
+
from struct import pack, unpack, iter_unpack
 <bytes>  = pack('<format>', <num_1> [, <num_2>, ...])
 <tuple>  = unpack('<format>', <bytes>)
 <tuples> = iter_unpack('<format>', <bytes>)