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


Groups > comp.lang.python > #28211

Re: to know binary

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <gandalf@shopzeus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.237
X-Spam-Level **
X-Spam-Evidence '*H*': 0.54; '*S*': 0.01; '1234': 0.16; 'wrote:': 0.17; 'python?': 0.20; 'question.': 0.20; 'programming': 0.23; 'to:2**1': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'related': 0.30; 'books': 0.30; "skip:' 10": 0.30; 'asking': 0.32; 'file': 0.32; 'zero': 0.33; 'to:addr:python-list': 0.33; 'list': 0.35; 'open': 0.35; 'received:192.168.0': 0.35; 'something': 0.35; 'there': 0.35; 'explain': 0.36; 'anything': 0.36; 'test': 0.36; 'does': 0.37; 'rather': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'received:62': 0.62; 'received:192.168.0.101': 0.84; 'received:192.168.13': 0.84; 'received:62.179': 0.84; 'received:62.179.121': 0.84; 'received:upcmail.net': 0.84; 'subject:know': 0.91
X-SourceIP 89.134.225.226
Date Sat, 01 Sep 2012 06:21:35 +0200
From Laszlo Nagy <gandalf@shopzeus.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0
MIME-Version 1.0
To contro opinion <contropinion@gmail.com>, python-list@python.org
Subject Re: to know binary
References <CA+YdQ_44L840OJ3H49wARV_sio67dmBtYzuyraHrRbdOA6urpQ@mail.gmail.com>
In-Reply-To <CA+YdQ_44L840OJ3H49wARV_sio67dmBtYzuyraHrRbdOA6urpQ@mail.gmail.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Mailman-Approved-At Sat, 01 Sep 2012 14:44:01 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.32.1346503442.27098.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1346503442 news.xs4all.nl 6953 [2001:888:2000:d::a6]:51944
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28211

Show key headers only | 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