From 2505376951a4652b4c3ed68d10149e6dda436f4a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 19 Oct 2003 21:13:41 +0000 Subject: [PATCH] Oops, typo. --- docs/STYLE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/STYLE b/docs/STYLE index 28c9b8eec..60f306a33 100644 --- a/docs/STYLE +++ b/docs/STYLE @@ -53,7 +53,7 @@ command. Whenever joining more than two strings, use string interpolation, not addition: s = x + y + z # Bad. s = '%s%s%s' % (x, y, z) # Good. - s = ''.join(x, y, z) # Best, but not as general. + s = ''.join([x, y, z]) # Best, but not as general. This has to do with efficiency; the intermediate string x+y is made (and thus copied) before x+y+z is made, so it's less efficient.