For review: PEP 308 - If-then-else expression
Andrew Koenig
ark at research.att.com
Sun Feb 9 21:31:44 EST 2003
>> Then I wonder why do people think that the following snippet is pythonic in
>> any (reasonable) way:
>> ','.join(lines)
Aahz> Many people (including me) think it's *NOT* Pythonic.
If I were trying to make code easy to understand for inexperienced
programmers, I would write str.join(',', lines) instead of
','.join(lines).
--
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark
More information about the Python-list
mailing list