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
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
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
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
://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: &
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
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()