|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/augassign.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/simple.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/del.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/genindex.html| ]]
|
Previous: 6.3.1 Augmented Assignment statements Up: 6. Simple statements Next: 6.5 The del statement
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)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/augassign.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/simple.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/del.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/genindex.html| ]]
|
Previous: 6.3.1 Augmented Assignment statements Up: 6. Simple statements Next: 6.5 The del statement
See About this document... for information on suggesting changes.