Re: list2str and performance

2006-10-20 Thread Fredrik Lundh
"spr" wrote: > When performance matters and you have to develop a CPU-bound > application, do you think it is possible to eventually achieve nearly > the best performance by extending Python with C or C++ modules, or is it > better to take the embedding approach, that is, use a C or C++ core that

list2str and performance

2006-10-20 Thread spr
Hi, I'm trying to learn Python and I'd appreciate any comments about my small snippets of code. I read an old anecdote about performance here: http://www.python.org/doc/essays/list2str/ First, I tried to figure out what would be the most pythonic approach by today's standards: def ListToStr(l)