Yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/pass.html

From ZCubes Wiki
Revision as of 19:26, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<div class="navigation"> {| width="100%" cellspacing="2" align="center" | yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/del.html|[[Image:yurttas_PL_SL_py...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


6.4 The pass statement

pass_stmt:      "pass"

pass is a null operation -- when it is executed, nothing happens. It is useful as a placeholder when a statement is required syntactically, but no code needs to be executed, for example:

def f(arg): pass    # a function that does nothing (yet)

class C: pass       # a class with no methods (yet)