RE: [Tutor] UnicodeDecodeError

2005-02-22 Thread Isr Gish
Forgot something in previOuse post. You can set the defualt encoding to something other then 'ascii'. This is done with the function Qsys.setdefualtencoding('mbcs')". I think that this has to be done in the module sitecostomize, because the function is deleted after the module site is run. And t

RE: [Tutor] UnicodeDecodeError

2005-02-22 Thread Isr Gish
Michael Lange"<[EMAIL PROTECTED]> wrote: >Hello list, > [Snip] This part of the error is saying what the problem is. >UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 22: ordinal not in range(128) Thatthe ascii codec that's being used can't decode any ascii code

RE: [Tutor] Referer file from import

2005-01-14 Thread Isr Gish
Chad Crabtree wrote: >Is there a way to know what the path of the file is that imported a >module? I've tried __file__ and playing with globals() but I can't >seem >to crack this. > There most be a way because the Tracebacks give us this info. You want to take a look at the 'insp

Re: [Tutor] XP and python 2.4, some progress

2005-01-09 Thread Isr Gish
I was having the same problem. I tried Dannys idea it didnt help. It seemed to me that something was wrong with the actual shortcut. So I went to the directory with the idle.pyw (C:\Program Files\Python24\Lib\idlelib\) and made a shortcut and now it wroks fine. All the best, Isr -Original

Re: [Tutor] C mailing list

2004-12-29 Thread Isr Gish
://c.snippets.org/c-rules.html. Subscribe at http://snippets.org/mailman/listinfo/c. All the best, Isr -Original Message- >From: "Marilyn Davis"<[EMAIL PROTECTED]> >Sent: 11/10/04 3:40:43 PM >To: "Isr Gish"<[EMAIL PROTECTED]> >Cc: &

RE: [Tutor] What am I doing wrong...

2004-12-23 Thread Isr Gish
John Purser wrote: [snip] >I'm not sure if this is your code or my mail agent (outlook) but as you can >see below there's a space between the function name (main) and the >parenthesis. I don't believe that's supposed to be there. I don't think there is any problem with adding space befo

Re: [Tutor] Address book sort of

2004-12-06 Thread Isr Gish
It was posted recently that pickleing should use binary mode. See changes in code. Rick Muller wrote: > >from cPickle import load, dump > >def save(fname,addressbook): >file = open(filename,'w') file = open(filename,'wb') >dump(addressbook,file) >file.close()