to know binary

Dave Angel d at davea.name
Sat Sep 1 00:40:52 EDT 2012


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




More information about the Python-list mailing list