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


Groups > comp.lang.python > #28200

Re: to know binary

References <CA+YdQ_44L840OJ3H49wARV_sio67dmBtYzuyraHrRbdOA6urpQ@mail.gmail.com>
Date 2012-09-01 14:18 +1000
Subject Re: to know binary
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.21.1346473086.27098.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Sep 1, 2012 at 2:15 PM, contro opinion <contropinion@gmail.com> 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 ?

I would explain it as a file with one line named test:
1234

I would further explain that this uses Unix-style line endings.

Any further explanations will require a much clearer question. Try this:

http://www.catb.org/~esr/faqs/smart-questions.html

ChrisA

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


Thread

Re: to know binary Chris Angelico <rosuav@gmail.com> - 2012-09-01 14:18 +1000

csiph-web