[Tutor] Tutor Digest, Vol 83, Issue 84

Jacob Bender benderjacob44 at gmail.com
Thu Jan 20 00:33:20 CET 2011


On 1/19/2011 4:53 PM, tutor-request at python.org wrote:
> Send Tutor mailing list submissions to
> 	tutor at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://mail.python.org/mailman/listinfo/tutor
> or, via email, send a message with subject or body 'help' to
> 	tutor-request at python.org
>
> You can reach the person managing the list at
> 	tutor-owner at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Tutor digest..."
>
>
> Today's Topics:
>
>     1. Re: Decoding from strange symbols (Alan Gauld)
>     2. Re: Why super does not work ! (Alan Gauld)
>     3. (no subject) (Jacob Bender)
>     4. Re: (no subject) (Emile van Sebille)
>     5. Correct Path for tkinter using python3.1 on Ubuntu	Maverick!!
>        (Nevins Duret)
>     6. Re: OOP question (Nick Stinemates)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 19 Jan 2011 18:04:23 -0000
> From: "Alan Gauld"<alan.gauld at btinternet.com>
> To: tutor at python.org
> Subject: Re: [Tutor] Decoding from strange symbols
> Message-ID:<ih793a$g24$1 at dough.gmane.org>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
> 	reply-type=original
>
>
> "Oleg Oltar"<oltarasenko at gmail.com>  wrote
>> I am trying to decode a string I took from file:
>>
>> file = open ("./Downloads/lamp-post.csv", 'r')
> I assume you know what its supposed to represent?
> What the columns etc are intended to be?
> Otherwise it will be a challenge!
>
> There is a section here that looks like the months of the year
> (English) in reverse:
>
>
> \x00S\x00e\x00a\x00r\x00c\x00h\x00e\x00s\x00\t\x00D\x00e\x00c\x00
> \x002\x000\x001\x000\x00\t\x00N\x00o\x00v\x00
> \x002\x000\x001\x000\x00\t\x00O\x00c\x00t\x00
> \x002\x000\x001\x000\x00\t\x00S\x00e\x00p\x00
> \x002\x000\x001\x000\x00\t\x00A\x00u\x00g\x00
> \x002\x000\x001\x000\x00\t\x00J\x00u\x00l\x00
> \x002\x000\x001\x000\x00\t\x00J\x00u\x00n\x00
> \x002\x000\x001\x000\x00\t\x00M\x00a\x00y\x00
> \x002\x000\x001\x000\x00\t\x00A\x00p\x00r\x00
> \x002\x000\x001\x000\x00\t\x00M\x00a\x00r\x00
> \x002\x000\x001\x000\x00\t\x00F\x00e\x00b\x00
> \x002\x000\x001\x000\x00\t\x00J\x00a\x00n\x00
>
> Otherwise its all a bit arbitrary...
>
> HTH,
>
>
Thanks! That did the trick!


More information about the Tutor mailing list