From b8f6f3558b19c2feccbacb8e4a3e5d79dfe0b2c3 Mon Sep 17 00:00:00 2001 From: ahrenholz Date: Mon, 20 Dec 2010 22:43:32 +0000 Subject: [PATCH] more text on Python --- wiki/Hacking.wiki | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/wiki/Hacking.wiki b/wiki/Hacking.wiki index 0fe2fc07..f4866bdf 100644 --- a/wiki/Hacking.wiki +++ b/wiki/Hacking.wiki @@ -59,7 +59,16 @@ Lengthy string constants can be wrapped in the middle: *comments* -Code should be commented to document its function. Tcl comments may appear at the end of lines where needed or on separate lines: +Code should be commented to document its function. + +Python comments for the most part, follows the [http://www.python.org/dev/peps/pep-0008/ Python Style Guide]. Classes and methods are commented as follows: +{{{ + def setup(self): + ''' Client has connected, set up a new connection. + ''' +}}} + +Tcl comments may appear at the end of lines where needed or on separate lines: {{{ # search all nodes for the value foreach node $node_list {