Bug in python34 package struct

Marko Rauhamaa marko at pacujo.net
Thu Mar 24 05:05:35 EDT 2016


Rudi Lopez Lopez <rlopezsr at gmail.com>:

> from struct import pack
>
> print(hex(126))
> print(pack('>H',126))

I can't see any bug. The tilde (~) has an ASCII code 126.


Marko



More information about the Python-list mailing list