File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -104,26 +104,38 @@ line. Good editors allow to do this with few keystrokes (ctrl-v on Vim).
104
104
105
105
def tricky_function ():
106
106
'''
107
+ Commented out because its breaks something.
107
108
if foo:
108
109
do_bar()
109
110
'''
110
111
return baz
111
112
112
113
def tricky_function ():
114
+ # Commented out because its breaks something.
113
115
# if foo:
114
116
# do_bar()
115
117
return baz
116
118
119
+
120
+ def tricky_function ():
121
+ # Commented out because its breaks something.
122
+ # if foo:
123
+ # do_bar()
124
+ return baz
125
+
117
126
**Good **
118
127
119
128
.. code-block :: python
120
129
121
130
def tricky_function ():
131
+ # Commented out because its breaks something.
122
132
# if foo:
123
133
# do_bar()
124
134
return baz
125
135
126
-
136
+ Note that comment text is properly written and separated from the hash by a
137
+ space. Commented code is not separated from the hash by an additional space;
138
+ this helps when uncommented the code.
127
139
128
140
The Basics
129
141
::::::::::
You can’t perform that action at this time.
0 commit comments