2965:d133c7edd88a | 2966:f85f686981ad |
---|---|
80 </tr><tr> | 80 </tr><tr> |
81 <td><a href="#Pep8NamingChecker.__checkVariablesInFunction">__checkVariablesInFunction</a></td> | 81 <td><a href="#Pep8NamingChecker.__checkVariablesInFunction">__checkVariablesInFunction</a></td> |
82 <td>Private method to check local variables in functions (N821).</td> | 82 <td>Private method to check local variables in functions (N821).</td> |
83 </tr><tr> | 83 </tr><tr> |
84 <td><a href="#Pep8NamingChecker.__error">__error</a></td> | 84 <td><a href="#Pep8NamingChecker.__error">__error</a></td> |
85 <td>Private method to build the error information</td> | 85 <td>Private method to build the error information.</td> |
86 </tr><tr> | 86 </tr><tr> |
87 <td><a href="#Pep8NamingChecker.__findGlobalDefs">__findGlobalDefs</a></td> | 87 <td><a href="#Pep8NamingChecker.__findGlobalDefs">__findGlobalDefs</a></td> |
88 <td>Private method amend a node with global definitions information.</td> | 88 <td>Private method amend a node with global definitions information.</td> |
89 </tr><tr> | 89 </tr><tr> |
90 <td><a href="#Pep8NamingChecker.__getArgNames">__getArgNames</a></td> | 90 <td><a href="#Pep8NamingChecker.__getArgNames">__getArgNames</a></td> |
140 Classes for internal use have a leading underscore in addition. | 140 Classes for internal use have a leading underscore in addition. |
141 </p><dl> | 141 </p><dl> |
142 <dt><i>node</i></dt> | 142 <dt><i>node</i></dt> |
143 <dd> | 143 <dd> |
144 AST note to check | 144 AST note to check |
145 </dd><dt><i>parents</i></dt> | |
146 <dd> | |
147 list of parent nodes | |
145 </dd> | 148 </dd> |
146 </dl><dl> | 149 </dl><dl> |
147 <dt>Returns:</dt> | 150 <dt>Returns:</dt> |
148 <dd> | 151 <dd> |
149 tuple giving line number, offset within line and error code | 152 tuple giving line number, offset within line and error code |
161 first argument. A method should have 'self' as the first argument. | 164 first argument. A method should have 'self' as the first argument. |
162 </p><dl> | 165 </p><dl> |
163 <dt><i>node</i></dt> | 166 <dt><i>node</i></dt> |
164 <dd> | 167 <dd> |
165 AST note to check | 168 AST note to check |
169 </dd><dt><i>parents</i></dt> | |
170 <dd> | |
171 list of parent nodes | |
166 </dd> | 172 </dd> |
167 </dl><dl> | 173 </dl><dl> |
168 <dt>Returns:</dt> | 174 <dt>Returns:</dt> |
169 <dd> | 175 <dd> |
170 tuple giving line number, offset within line and error code | 176 tuple giving line number, offset within line and error code |
184 (e.g. threading.py), to retain backwards compatibility. | 190 (e.g. threading.py), to retain backwards compatibility. |
185 </p><dl> | 191 </p><dl> |
186 <dt><i>node</i></dt> | 192 <dt><i>node</i></dt> |
187 <dd> | 193 <dd> |
188 AST note to check | 194 AST note to check |
195 </dd><dt><i>parents</i></dt> | |
196 <dd> | |
197 list of parent nodes | |
189 </dd> | 198 </dd> |
190 </dl><dl> | 199 </dl><dl> |
191 <dt>Returns:</dt> | 200 <dt>Returns:</dt> |
192 <dd> | 201 <dd> |
193 tuple giving line number, offset within line and error code | 202 tuple giving line number, offset within line and error code |
201 naming convention (N811, N812, N813, N814). | 210 naming convention (N811, N812, N813, N814). |
202 </p><dl> | 211 </p><dl> |
203 <dt><i>node</i></dt> | 212 <dt><i>node</i></dt> |
204 <dd> | 213 <dd> |
205 AST note to check | 214 AST note to check |
215 </dd><dt><i>parents</i></dt> | |
216 <dd> | |
217 list of parent nodes | |
206 </dd> | 218 </dd> |
207 </dl><dl> | 219 </dl><dl> |
208 <dt>Returns:</dt> | 220 <dt>Returns:</dt> |
209 <dd> | 221 <dd> |
210 tuple giving line number, offset within line and error code | 222 tuple giving line number, offset within line and error code |
219 Module and package names should be lowercase. | 231 Module and package names should be lowercase. |
220 </p><dl> | 232 </p><dl> |
221 <dt><i>node</i></dt> | 233 <dt><i>node</i></dt> |
222 <dd> | 234 <dd> |
223 AST note to check | 235 AST note to check |
236 </dd><dt><i>parents</i></dt> | |
237 <dd> | |
238 list of parent nodes | |
224 </dd> | 239 </dd> |
225 </dl><dl> | 240 </dl><dl> |
226 <dt>Returns:</dt> | 241 <dt>Returns:</dt> |
227 <dd> | 242 <dd> |
228 tuple giving line number, offset within line and error code | 243 tuple giving line number, offset within line and error code |
235 Private class to check the given node for a name to be avoided (N831). | 250 Private class to check the given node for a name to be avoided (N831). |
236 </p><dl> | 251 </p><dl> |
237 <dt><i>node</i></dt> | 252 <dt><i>node</i></dt> |
238 <dd> | 253 <dd> |
239 AST note to check | 254 AST note to check |
255 </dd><dt><i>parents</i></dt> | |
256 <dd> | |
257 list of parent nodes | |
240 </dd> | 258 </dd> |
241 </dl><dl> | 259 </dl><dl> |
242 <dt>Returns:</dt> | 260 <dt>Returns:</dt> |
243 <dd> | 261 <dd> |
244 tuple giving line number, offset within line and error code | 262 tuple giving line number, offset within line and error code |
253 Local variables in functions should be lowercase. | 271 Local variables in functions should be lowercase. |
254 </p><dl> | 272 </p><dl> |
255 <dt><i>node</i></dt> | 273 <dt><i>node</i></dt> |
256 <dd> | 274 <dd> |
257 AST note to check | 275 AST note to check |
276 </dd><dt><i>parents</i></dt> | |
277 <dd> | |
278 list of parent nodes | |
258 </dd> | 279 </dd> |
259 </dl><dl> | 280 </dl><dl> |
260 <dt>Returns:</dt> | 281 <dt>Returns:</dt> |
261 <dd> | 282 <dd> |
262 tuple giving line number, offset within line and error code | 283 tuple giving line number, offset within line and error code |
264 </dd> | 285 </dd> |
265 </dl><a NAME="Pep8NamingChecker.__error" ID="Pep8NamingChecker.__error"></a> | 286 </dl><a NAME="Pep8NamingChecker.__error" ID="Pep8NamingChecker.__error"></a> |
266 <h4>Pep8NamingChecker.__error</h4> | 287 <h4>Pep8NamingChecker.__error</h4> |
267 <b>__error</b>(<i>node, code</i>) | 288 <b>__error</b>(<i>node, code</i>) |
268 <p> | 289 <p> |
269 Private method to build the error information | 290 Private method to build the error information. |
270 </p><dl> | 291 </p><dl> |
271 <dt><i>node</i></dt> | 292 <dt><i>node</i></dt> |
272 <dd> | 293 <dd> |
273 AST node to report an error for | 294 AST node to report an error for |
274 </dd><dt><i>code</i></dt> | 295 </dd><dt><i>code</i></dt> |