From 967a7479bbed9d8a67d80a9303dde3b51c39bdc9 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 25 Mar 2003 08:24:36 +0000 Subject: [PATCH] Added comment about debugging prints. --- docs/STYLE | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/STYLE b/docs/STYLE index 6ce0753cd..562b391aa 100644 --- a/docs/STYLE +++ b/docs/STYLE @@ -60,3 +60,9 @@ Whenever joining more than two strings, use string interpolation, not addition: 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. + +Use the debug module to its fullest; when you need to print some values to +debug, use debug.printf to do so, and leave those print statements in the code +(perhaps commented out) so they can later be re-enabled. Remember that once +code is buggy, it tends to have more bugs, and you'll probably need those print +statements again.