mirror of
https://github.com/python/cpython.git
synced 2025-10-02 13:22:19 +00:00
Fix syntax error in struct doc example (GH-102160)
Missing closing ) reported on Discuss by Chukwudi Nwachukwu.
(cherry picked from commit 8f647477f0
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
8b5498e367
commit
bf0a8362cd
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ ordering::
|
||||||
>>> from struct import *
|
>>> from struct import *
|
||||||
>>> pack(">bhl", 1, 2, 3)
|
>>> pack(">bhl", 1, 2, 3)
|
||||||
b'\x01\x00\x02\x00\x00\x00\x03'
|
b'\x01\x00\x02\x00\x00\x00\x03'
|
||||||
>>> unpack('>bhl', b'\x01\x00\x02\x00\x00\x00\x03'
|
>>> unpack('>bhl', b'\x01\x00\x02\x00\x00\x00\x03')
|
||||||
(1, 2, 3)
|
(1, 2, 3)
|
||||||
>>> calcsize('>bhl')
|
>>> calcsize('>bhl')
|
||||||
7
|
7
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue