Bitwise OR?

Diez B. Roggisch deets at
Fri Mar 24 15:40:17 CET 2006

Tim N. van der Leeuw wrote:
> I also wonder if it wouldn't be faster to put the numbers into a list
> and join the list into a string -- did you test with that?

It will be faster - the naive string concatenation is quadratic, whereas the
list-based approach is linear.


More information about the Python-list mailing list