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


Groups > comp.lang.python > #28201

Re: to know binary

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!news2.arglkargh.de!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <d@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.013
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'ascii': 0.07; 'executable': 0.07; 'here?': 0.09; 'linux/unix,': 0.09; 'cc:addr:python-list': 0.10; '1234': 0.16; 'exactly?': 0.16; 'hex': 0.16; 'zeroes': 0.16; 'wrote:': 0.17; 'written': 0.20; 'cc:2**0': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'common': 0.26; 'am,': 0.27; 'installing': 0.27; 'run': 0.28; 'asking': 0.32; 'you?': 0.32; 'file': 0.32; 'running': 0.32; 'open': 0.35; 'there': 0.35; 'explain': 0.36; 'characters': 0.36; 'test': 0.36; 'does': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'received:192': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'end': 0.40; 'address': 0.60; 'first': 0.61; 'kind': 0.61; 'different': 0.63; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'subject:know': 0.91
Date Sat, 01 Sep 2012 00:40:52 -0400
From Dave Angel <d@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version 1.0
To contro opinion <contropinion@gmail.com>
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
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:jbytlUr/QgrzcBWXmksqlhvhzlX1vUxOFmEjTVLXJeb bBJe3Y/5yO/yUIRC5haNZtNiqG1LY/MJ9LGonUy7k7Llo4Dv8v TCqmKkSW8/UEC5lH1exT8JjPPgenILON854MRbr1cm82C/rzd8 vN6zuKoXk0oy7U/ATalfAds2rcCSC+9Ps5bt4hvLChuuTbwgjf RG5xXBhXmjmCKYV6zIBuwovLgoape3Mk+kGUEMgJ9TJUZkt6AG KTj80XiX4uJCSSPMyYfq6lFd0GEB8i0K9T5qERzk/9iTjdEdmp M8PkkGIAZVsSkPBXFRZAvwYc6B76xMMXV6kCI3XY/VUdYuvfw= =
Cc python-list <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To d@davea.name
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.22.1346474487.27098.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1346474487 news.xs4all.nl 6909 [2001:888:2000:d::a6]:58607
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28201

Show key headers only | View raw


On 09/01/2012 12:15 AM, 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 ?
>
>
>

Explain what, exactly?  Explain why you were able to run xxd without
first installing Mumps?

What is it you don't understand?  Do you know hex?  Are you familiar
with the hex codes for common ASCII characters and control characters? 
Does the period at the end of the line bother you?  Are you expecting
some different number of zeroes in the address field?

Since you're apparently running Linux/Unix, you can find xxd executable
by using where xxd.  And you can tell what kind of file it is by running
file on it.  xxd is evidently not written in Python.  So why again are
you asking here?

-- 

DaveA

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


Thread

Re: to know binary Dave Angel <d@davea.name> - 2012-09-01 00:40 -0400

csiph-web