[Python-Dev] vox populii illiterati
Tim Peters
tim.one@comcast.net
Sun, 09 Feb 2003 13:02:32 -0500
[Samuele Pedroni]
> does that mean that all the _ and _ or _ in the std lib have been
> written by bots <wink>?
Pretty much, looks like: simple uses by simple bots, overwhelmingly with
the thingie following "and" being a string literal or global CONSTANT. This
oddball from imaplib.py wasn't written by anyone/anything on this planet,
though:
l = map(lambda x:'%s: "%s"' % (x[0], x[1][0] and '" "'.join(x[1]) or ''), l)
I doubt it would read better as
l = map(lambda x:'%s: "%s"' % (x[0], '" "'.join(x[1]) if x[1][0] else ''),
l)