No 1.6! (was Re: A REALLY COOL PYTHON FEATURE:)

Martijn Faassen m.faassen at vet.uu.nl
Thu May 18 10:25:00 EDT 2000


Peter Schneider-Kamp <petersc at stud.ntnu.no> wrote:
> Martijn Faassen wrote:
>> 
>> In the case of 'foo'.join() this stops making sense:
>> 
>>   I join the list of strings with spaces.
>> 
>>   ' '.join(list)

> Well how about this:
>   The space joins the elements of the list.

>   ' '.joins(list)

I like that! Perhaps not perfect yet, as now it looks like a declarative
statement: ' ' joins this list, while I'd like an active verb. But it's
already a lot more clear than .join(). I assume Chris Tismer is sending
off reports to keep Guido informed of this. :)

Regards,

Martijn
-- 
History of the 20th Century: WW1, WW2, WW3?
No, WWW -- Could we be going in the right direction?



More information about the Python-list mailing list