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

Revision as of 20:11, 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/20/ref/augassign.html|[[Image:yurttas_PL...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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)

See About this document... for information on suggesting changes.