For review: PEP 308 - If-then-else expression

Aahz aahz at pythoncraft.com
Sun Feb 9 16:12:56 EST 2003


In article <roy-7E700F.15424909022003 at reader1.panix.com>,
Roy Smith  <roy at panix.com> wrote:
>In article <b26b87$i0h$1 at panix2.panix.com>, aahz at pythoncraft.com (Aahz) 
>wrote:
>> In article <mailman.1044817049.31780.python-list at python.org>,
>> Carlos Ribeiro  <cribeiro at mail.inet.com.br> wrote:
>>>On Saturday 08 February 2003 18:51, Christian Tismer wrote:
>>>>
>>>> b) reading and execution order should match as much as possible.
>>>
>>>Then I wonder why do people think that the following snippet is pythonic in 
>>>any (reasonable) way:
>>>
>>>  ','.join(lines)
>> 
>> Many people (including me) think it's *NOT* Pythonic.
>
>I'm with Aahz.  I think it's pretty silly.  Join() should have been a 
>method of lists (and maybe tuples?), not of strings.  But that's history 
>now.

Well, no, that doesn't work, either.  join() should have been a class
method rather than an instance method, is what it is.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Register for PyCon now!  http://www.python.org/pycon/reg.html




More information about the Python-list mailing list