commit | 05eba1fdc80efe145bac39d9d84cb1cc439f303c | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Fri Aug 27 21:32:02 2004 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Fri Aug 27 21:32:02 2004 +0000 |
tree | a56d35fe9ee6d62059911b20fa3fdda7ffc88fb4 | |
parent | cca018356d3321880e2c9083d630691b5b6c2326 [diff] |
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.