Dima Dorfman wrote:
> I happen to not mind the ''.join syntax, but if I did, I would use
>
> str.join('', seq)
>
> which is just like a join builtin except that it's not as easy to make
> it work on pre-string-method Pythons.
just like join, except that it isn't:
>>> string.join(seq, sep)
u'axb
[EMAIL PROTECTED] (Aahz) writes:
> While I'm in complete agreement about the "".join() construct on the
> basis of looks, I have come to appreciate the fact that I *never* mess up
> the order of arguments any more.
Yeah. When I needed joinable arrays of strings in Eiffel, I added them
to the ARRA
On 2004-12-26, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> string methods are nice, but nothing groundbreaking, and their niceness is
> almost entirely offset by the horrid "".join(seq) construct that keeps popping
> up when people take the "the string module is deprecated" yada yada too
> seriously
In article <[EMAIL PROTECTED]>,
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>
>func(*arg) instead of apply() is a step back -- it hides the fact
>that functions are objects, and it confuses the heck out of both
>C/C++ programmers and Python programmers that understand the "def
>func(*arg)" form, becau
In article <[EMAIL PROTECTED]>,
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
> func(*arg) instead of apply() is a step back
Strongly disagree. I find func(*args) much more readable than
apply(func, args).
> -- it hides the fact that functions are objects,
What does this have to do with anything
Aahz wrote:
>>(I've said it before, and I'll say it again: native unicode and
>>generators are the only essential additions I've seen since 1.5.2, with
>>properties and sub-classable C types sharing a distant third place.
>>the rest of the stuff has had zero impact on my ability to write solid
>>c
In article <[EMAIL PROTECTED]>,
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>
>(I've said it before, and I'll say it again: native unicode and
>generators are the only essential additions I've seen since 1.5.2, with
>properties and sub-classable C types sharing a distant third place.
>the rest of the
Skip Montanaro wrote:
>
>Keith> My personal gripe is this. I think the core language, as of 2.3
>Keith> or 2.4 is very good, has more features than most people will ever
>Keith> use, and they (Guido, et al.) can stop tinkering with it now and
>Keith> concentrate more on the standard
Keith> My personal gripe is this. I think the core language, as of 2.3
Keith> or 2.4 is very good, has more features than most people will ever
Keith> use, and they (Guido, et al.) can stop tinkering with it now and
Keith> concentrate more on the standard libraries.
What keeps you