get-a-cup-of-coffee slow

Grant Griffin not.this at
Thu Aug 9 22:35:57 CEST 2001

In article <9kurh302g4k at>, Grant says...
>If so, is it because "s +=" is implemented as "s = s
>+", where the new one is always an appended copy of the original?  (I guess I
>would hope that in the case of a string "+=" operation, Python would leave a
>little spare space at the end of the new string so multiple appends would not
>have to make a copy with _each_ append.)

OK, maybe that sort of thing isn't feasible due to the "immutable" nature of

   -immutability-<wink>-ly y'rs,



Grant R. Griffin                                       g2 at
Publisher of dspGuru                 
Iowegian International Corporation  

More information about the Python-list mailing list