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

Roy Smith roy at panix.com
Sun Feb 9 15:42:49 EST 2003


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.




More information about the Python-list mailing list