gah! I hate the new string syntax
Carl Banks
idot at vt.edu
Fri Mar 2 04:42:56 EST 2001
Sean 'Shaleh' Perry <shaleh at valinux.com> wrote:
> return ";".join(["%s=%s" % (k, params[k]) for k in params.keys()])
>
> every day python seems to be moving closer to the line noise aspect of
> coding.
I find it ok for methodlike functions such as split.
For unmethodlike functions such as join, I would use the old
string.join syntax (for regular strings, anyways).
"".join is just creepy.
--
CARL BANKS
"I like nothing better than a good challenge.
This is not one of them."
More information about the Python-list
mailing list