[Python-Dev] RFC: Add a new builtin strarray type to Python? (original) (raw)
Simon Cross hodgestar+pythondev at gmail.com
Sun Oct 2 19:27:46 CEST 2011
- Previous message: [Python-Dev] RFC: Add a new builtin strarray type to Python?
- Next message: [Python-Dev] PEP 393 merged
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Oct 2, 2011 at 7:23 PM, Simon Cross <hodgestar+pythondev at gmail.com> wrote:
I'm -1 on hacking += to be fast again because having the two loops below perform wildly differently is very surprising to me:
s = '' for x in loops: s += x s = '' for x in loops: s = s + x
Erk. Bad example. Second example should be:
s = '' for x in loops: b = s s += x
(I misunderstood the details but I new the reference counting hackiness would lead to surprises somewhere :).
Schiavo Simon
- Previous message: [Python-Dev] RFC: Add a new builtin strarray type to Python?
- Next message: [Python-Dev] PEP 393 merged
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]