The pass statement

Syntax:

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):    # a function that does nothing (yet)
    pass

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

A Django site. this page was rendered by a django application in 0.01s 2008-10-13 00:18:01.419379. hosted by webfaction.