A missing closing (round) bracket in unpack example

This line unpack('>bhl', b'\x01\x00\x02\x00\x00\x00\x03' at struct — Interpret bytes as packed binary data — Python 3.11.2 documentation is missing a closing (round) bracket.

It should be unpack('>bhl', b'\x01\x00\x02\x00\x00\x00\x03')

1 Like

You are right. I will fix it.

Fix backported to 3.11 and 3.10.

3 Likes