GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — codeql/python/ql/src/Functions/NonCls.qhelp at codeql-cli/v2.19.1 · github/codeql Expand file tree/ Copy pathNonCls.qhelpMore file actions 35 lines (24 loc) · 921 Bytes / Copy pathNonCls.qhelpFile metadata and controls35 lines (24 loc) · 921 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 <!DOCTYPE qhelp PUBLIC "-//Semmle//qhelp//EN" "qhelp.dtd"> <qhelp> <overview> <p> The first parameter of a class method, a new method or any metaclass method should be called <code>cls</code>. This makes the purpose of the parameter clear to other developers. </p> </overview> <recommendation> <p>Change the name of the first parameter to <code>cls</code> as recommended by the style guidelines in PEP 8.</p> </recommendation> <example> <p>In the example, the first parameter to <code>make()</code> is <code>klass</code> which should be changed to <code>cls</code> for ease of comprehension. </p> <sample src="NonCls.py" /> </example> <references> <li>Python PEP 8: <a href="http://www.python.org/dev/peps/pep-0008/#function-and-method-arguments">Function and method arguments</a>.</li> <li>Python Tutorial: <a href="http://docs.python.org/2/tutorial/classes.html">Classes</a>.</li> </references> </qhelp> |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |