Re: reload(sys)

2007-09-06 Thread Sönmez Kartal
On 6 Eylül, 19:19, Steven Bethard <[EMAIL PROTECTED]> wrote: > Sönmez Kartal wrote: > > I was using the XMLBuilder(xmlbuilder.py). I'm writing XML files as > > "f.write(str(xml))". At execution of that line, it gives error with > > description, configure your default encoding... > > [and later] > >

Re: reload(sys)

2007-09-06 Thread Steven Bethard
Sönmez Kartal wrote: > I was using the XMLBuilder(xmlbuilder.py). I'm writing XML files as > "f.write(str(xml))". At execution of that line, it gives error with > description, configure your default encoding... > [and later] > > http://rafb.net/p/RfaF8215.html > > products in the code is a list of

Re: reload(sys)

2007-09-06 Thread Gabriel Genellina
On 6 sep, 08:13, Sönmez Kartal <[EMAIL PROTECTED]> wrote: > On 3 Eylül, 05:40, Steven Bethard <[EMAIL PROTECTED]> wrote: > > Sönmez Kartal wrote: > > > I was using the XMLBuilder(xmlbuilder.py). I'm writing XML files as > > > "f.write(str(xml))". At execution of that line, it gives error with > > >

Re: reload(sys)

2007-09-06 Thread Sönmez Kartal
On 3 Eylül, 05:40, Steven Bethard <[EMAIL PROTECTED]> wrote: > Sönmez Kartal wrote: > > I was using the XMLBuilder(xmlbuilder.py). I'm writing XML files as > > "f.write(str(xml))". At execution of that line, it gives error with > > description, configure your default encoding... > > [and later] > >

Re: reload(sys)

2007-09-02 Thread Steven Bethard
Sönmez Kartal wrote: > I was using the XMLBuilder(xmlbuilder.py). I'm writing XML files as > "f.write(str(xml))". At execution of that line, it gives error with > description, configure your default encoding... > [and later] > > I get this when it happens: "Decoding Error: You must configure > defa

Re: reload(sys)

2007-09-01 Thread Sönmez Kartal
gt; "sys.setdefaultencoding('utf-8')"... > >>> My first try wasn't successful since setdefaultencoding is not named > >>> when I imported sys module. After, I import sys module, I needed to > >>> write "reload(sys)" also. > >&g

Re: reload(sys)

2007-09-01 Thread Sönmez Kartal
gt; > I've had an encoding issue and solved it by > >> > "sys.setdefaultencoding('utf-8')"... > > >> > My first try wasn't successful since setdefaultencoding is not named > >> > when I imported sys module. After, I import sys module, I needed to &g

Re: reload(sys)

2007-08-31 Thread Steven Bethard
successful since setdefaultencoding is not named >>> when I imported sys module. After, I import sys module, I needed to >>> write "reload(sys)" also. >>> I wonder why we need to call "reload(sys)" to get setdefaultencoding >>> named? >&

Re: reload(sys)

2007-08-31 Thread Marc 'BlackJack' Rintsch
27;)"... >> >> > My first try wasn't successful since setdefaultencoding is not named >> > when I imported sys module. After, I import sys module, I needed to >> > write "reload(sys)" also. >> >> > I wonder why we need to call "reload(sys)&quo

Re: reload(sys)

2007-08-31 Thread Sönmez Kartal
is not named > > when I imported sys module. After, I import sys module, I needed to > > write "reload(sys)" also. > > > I wonder why we need to call "reload(sys)" to get setdefaultencoding > > named? > > sys.setdefaultencoding is purposely delet

Re: reload(sys)

2007-08-30 Thread Steven Bethard
Sönmez Kartal wrote: > I've had an encoding issue and solved it by > "sys.setdefaultencoding('utf-8')"... > > My first try wasn't successful since setdefaultencoding is not named > when I imported sys module. After, I import sys module, I needed to >

reload(sys)

2007-08-30 Thread Sönmez Kartal
Hello, I've had an encoding issue and solved it by "sys.setdefaultencoding('utf-8')"... My first try wasn't successful since setdefaultencoding is not named when I imported sys module. After, I import sys module, I needed to write "reload(sys)" also.

Re: problem with reload(sys) (doing reload on the sys module)

2006-05-23 Thread gen_tricomi
hi nick, have you found any solutions to this problem. maybe sys module does not need to be reloaded. may Tim peters and the rest can help us on this -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with reload(sys) (doing reload on the sys module)

2006-05-04 Thread nick
Looks like a bug (probably in IDLE): when I start IDLE from the command line, it pops up its interaction window and here is what it says about stdout: IDLE 1.1.2 >>> import sys >>> sys.stdout Then I try the reload and I get no output in the interaction windo

problem with reload(sys) (doing reload on the sys module)

2006-05-03 Thread gen_tricomi
'_socket', 'binascii', 'sre_constants', 'types', 'idlelib.__builtin__', 'idlelib.tkMessageBox', 'cPickle', '_codecs', 'encodings.cp1252', 'idlelib.repr', 'idlelib.Queue', 'idlelib.__ma