diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-08-27 21:32:02 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-08-27 21:32:02 (GMT) |
commit | 05eba1fdc80efe145bac39d9d84cb1cc439f303c (patch) | |
tree | a56d35fe9ee6d62059911b20fa3fdda7ffc88fb4 /Lib/codecs.py | |
parent | cca018356d3321880e2c9083d630691b5b6c2326 (diff) | |
download | cpython-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 'Lib/codecs.py')
0 files changed, 0 insertions, 0 deletions