]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
PyUnicode_Join(): Rewrote to use PySequence_Fast(). This doesn't do
authorTim Peters <tim.peters@gmail.com>
Fri, 27 Aug 2004 21:32:02 +0000 (21:32 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 27 Aug 2004 21:32:02 +0000 (21:32 +0000)
commit05eba1fdc80efe145bac39d9d84cb1cc439f303c
treea56d35fe9ee6d62059911b20fa3fdda7ffc88fb4
parentcca018356d3321880e2c9083d630691b5b6c2326
PyUnicode_Join():  Rewrote to use PySequence_Fast().  This doesn't do
much to reduce the size of the code, but greatly improves its clarity.
It's also quicker in what's probably the most common case (the argument
iterable is a list).  Against it, if the iterable isn't a list or a tuple,
a temp tuple is materialized containing the entire input sequence, and
that's a bigger temp memory burden.  Yawn.
Objects/unicodeobject.c