Re: Is Python string immutable?

2005-12-08 Thread Steve Holden
Frank Potter wrote: > Thank you very much. > Steve Holden, I post my soucecode at my blog here: > http://hiparrot.wordpress.com/2005/12/08/implementing-a-simple-net-spider/ > > I wish you can read and give me some suggest

Re: Is Python string immutable?

2005-12-07 Thread Frank Potter
Thank you very much.Steve Holden, I post my soucecode at my blog here:http://hiparrot.wordpress.com/2005/12/08/implementing-a-simple-net-spider/ I wish you can read and give me some suggestion. Any comments will be appreciated.On 12/2/05, Steve Holden < [EMAIL PROTECTED]> wrote:could ildg wrote:> I

Re: Is Python string immutable?

2005-12-03 Thread Scott David Daniels
Steve Holden wrote: > could ildg wrote: >> Will string operation in python also leave some garbage? I implemented >> a net-spider in python which includes many html string procession. >> After it running for sometime, the python exe eats up over 300M >> memory. Is this because the string garbage

Re: Is Python string immutable?

2005-12-02 Thread Steve Holden
could ildg wrote: > In java and C# String is immutable, str=str+"some more" will return a > new string and leave some gargabe. > so in java and C# if there are some frequent string operation, > StringBuilder/StringBuffer is recommanded. > > Will string operation in python also leave some garbag

Re: Is Python string immutable?

2005-12-02 Thread Martin Franklin
Chris Mellon wrote: > On 11/30/05, could ildg <[EMAIL PROTECTED]> wrote: > >>In java and C# String is immutable, str=str+"some more" will return a new >>string and leave some gargabe. >>so in java and C# if there are some frequent string operation, >>StringBuilder/StringBuffer is recommanded. >> >

Re: Is Python string immutable?

2005-11-30 Thread Chris Mellon
On 11/30/05, could ildg <[EMAIL PROTECTED]> wrote: > In java and C# String is immutable, str=str+"some more" will return a new > string and leave some gargabe. > so in java and C# if there are some frequent string operation, > StringBuilder/StringBuffer is recommanded. > > Will string operation in

Is Python string immutable?

2005-11-30 Thread could ildg
In java and C# String is immutable, str=str+"some more" will return a new string and leave some gargabe. so in java and C# if there are some frequent string operation, StringBuilder/StringBuffer is recommanded.   Will string operation in python also leave some garbage? I implemented a net-spider i