mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +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 *
|
||||
>>> pack(">bhl", 1, 2, 3)
|
||||
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)
|
||||
>>> calcsize('>bhl')
|
||||
7
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue