summaryrefslogtreecommitdiffstats
path: root/Python/mysnprintf.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-27 21:32:02 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-27 21:32:02 (GMT)
commit05eba1fdc80efe145bac39d9d84cb1cc439f303c (patch)
treea56d35fe9ee6d62059911b20fa3fdda7ffc88fb4 /Python/mysnprintf.c
parentcca018356d3321880e2c9083d630691b5b6c2326 (diff)
downloadcpython-05eba1fdc80efe145bac39d9d84cb1cc439f303c.zip
cpython-05eba1fdc80efe145bac39d9d84cb1cc439f303c.tar.gz
cpython-05eba1fdc80efe145bac39d9d84cb1cc439f303c.tar.bz2
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.
Diffstat (limited to 'Python/mysnprintf.c')
0 files changed, 0 insertions, 0 deletions