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


Groups > comp.lang.python > #28211 > unrolled thread

Re: to know binary

Started byLaszlo Nagy <gandalf@shopzeus.com>
First post2012-09-01 06:21 +0200
Last post2012-09-01 06:21 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#28211 — Re: to know binary

FromLaszlo Nagy <gandalf@shopzeus.com>
Date2012-09-01 06:21 +0200
SubjectRe: to know binary
Message-ID<mailman.32.1346503442.27098.python-list@python.org>
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.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web