Movatterモバイル変換


[0]ホーム

URL:


Previous PageUp One LevelNext PagePython Reference ManualContentsIndex
Previous:6.3.1 Augmented assignment statementsUp:6. Simple statementsNext:6.5 The del statement

 
6.4 Thepass statement

 

pass_stmt ::= "pass"
Download entire grammar as text.

pass is a null operation -- when it is executed, nothinghappens. It is useful as a placeholder when a statement isrequired 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)


Previous PageUp One LevelNext PagePython Reference ManualContentsIndex
Previous:6.3.1 Augmented assignment statementsUp:6. Simple statementsNext:6.5 The del statement
Release 2.2.3, documentation updated on 30 May 2003.
SeeAbout this document... for information on suggesting changes.
[8]ページ先頭

©2009-2026 Movatter.jp