Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28211

Re: to know binary

Date 2012-09-01 06:21 +0200
From Laszlo Nagy <gandalf@shopzeus.com>
Subject Re: to know binary
References <CA+YdQ_44L840OJ3H49wARV_sio67dmBtYzuyraHrRbdOA6urpQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.32.1346503442.27098.python-list@python.org> (permalink)

Show all headers | View raw


On 2012-09-01 06:15, contro opinion wrote:
> there is a only line in the file nanmed test:
> 1234
> when i open it whit  xxd
> xxd  test
> what i  get is :
> 0000000: 3132 3334 0a                             1234.
> can you explain it ?
At offset zero (000000): chr(0x31) + chr(0x32)+ chr(0x33)+ chr(0x33)+ 
chr(0x0a) = '1'+'2'+'3'+'4'+'.' = '1234.'

Does it have to do ANYTHING with Python? If I were you, and it was 
something that must be explained, then I would rather start books about 
programming before asking questions on a mailing list that is not 
related to my question.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: to know binary Laszlo Nagy <gandalf@shopzeus.com> - 2012-09-01 06:21 +0200

csiph-web