Writing bytes to stdout reverses the bytes
Ben Bacarisse
ben.usenet at bsb.me.uk
Sun Aug 19 21:33:24 EDT 2018
Grant Edwards <grant.b.edwards at gmail.com> writes:
> On 2018-08-20, Steven D'Aprano <steve+comp.lang.python at pearwood.info> wrote:
>> On Mon, 20 Aug 2018 00:31:35 +0000, Steven D'Aprano wrote:
>>
>>> When I write bytes to stdout, why are they reversed?
>>
>> Answer: they aren't, use hexdump -C.
>
> One might think that dumping out bytes in the correct order ought to
> be the default format for hexdump.
It is if you run it as hd.
--
Ben.
More information about the Python-list
mailing list