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, configu

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, configu

Re: reload(sys)

2007-09-01 Thread Sönmez Kartal
On 31 A ustos, 20:09, Steven Bethard <[EMAIL PROTECTED]> wrote: > Sönmez Kartal wrote: > > On 31 A ustos, 04:24, Steven Bethard <[EMAIL PROTECTED]> wrote: > >> Sönmez Kartal wrote: > >>> I've had an encoding issue and solved it by > >>&

Re: reload(sys)

2007-09-01 Thread Sönmez Kartal
On 31 A ustos, 16:58, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Fri, 31 Aug 2007 12:53:36 +, Sönmez Kartal wrote: > > On 31 A ustos, 04:24, Steven Bethard <[EMAIL PROTECTED]> wrote: > >> Snmez Kartal wrote: > >&

Re: reload(sys)

2007-08-31 Thread Sönmez Kartal
On 31 A ustos, 04:24, Steven Bethard <[EMAIL PROTECTED]> wrote: > 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

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. I wonder why we need to call "reload(sys)" to

Re: Best programs written completly in Python

2007-08-06 Thread Sönmez Kartal
On 5 A ustos, 13:14, Franz Steinhäusler <[EMAIL PROTECTED]> wrote: > Hello NG, > > wWhat are the best programs in your opinion, written entirly > in pyhton, divided into categories like: > a) Games > b) Utilities/System > c) Office > d) Web/Newsreader/Mail/Browser > ... > > I don't want to start a

Re: regexp problem in Python

2007-08-04 Thread Sönmez Kartal
On 4 A ustos, 17:10, Ehsan <[EMAIL PROTECTED]> wrote: > On Aug 4, 1:22 pm, Sönmez Kartal <[EMAIL PROTECTED]> wrote: > > > > > > > > > On 4 A ustos, 00:41, Ehsan <[EMAIL PROTECTED]> wrote: > > > > I want to find "http://www.2s

Re: regexp problem in Python

2007-08-04 Thread Sönmez Kartal
On 4 A ustos, 00:41, Ehsan <[EMAIL PROTECTED]> wrote: > I want to find "http://www.2shared.com/download/1716611/e2000f22/ > Jadeed_Mlak14.wmv?tsid=20070803-164051-9d637d11" or 3gp instead of > wmv in the text file like this : > > ""some code"" > function reportAbuse() { > var windowname="abus

Re: The best platform and editor for Python

2007-07-01 Thread Sönmez Kartal
Hello, Emacs is the best for anything for me. Some people prefers Eclipse with PyDev extension. Build some real world applications with Python. Pick what do you need from SourceForge or similar one then write it. If it is something you need then you probably will make it more special then you fou

Re: File I/O

2007-05-09 Thread Sönmez Kartal
27;, 'b' - '2', you should use dictionary. -- Sönmez Kartal -- http://mail.python.org/mailman/listinfo/python-list

Re: preferred windows text editor?

2007-05-09 Thread Sönmez Kartal
GNU Emacs with python-mode -- Sönmez Kartal -- http://mail.python.org/mailman/listinfo/python-list

Re: python global variable error

2007-03-16 Thread Sönmez Kartal
Then after defining clientsock, write a print statement as "print clientsock", see what it will print, None or a object? Sönmez ANIL KARADAĞ wrote: > ok , arranged block.but program give error global name 'clientsock' is not > defined " ,.. > > 2007/

Re: Pickle Problem

2007-03-15 Thread Sönmez Kartal
Hi, You should write your last two lines as ... x = DemoClass() x.WriteToFile() Don't miss paranthesis again... :) Maybe there are still some mistakes too. Does dump method writes list's elements? Sönmez tonyr1988 wrote: > I'm a complete python n00b writing my first program (