(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/del.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/simple.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/assignment.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/genindex.html| ]]
|
Next: 6.5 The del statement Up: 6. Simple statements Previous: 6.3 Assignment statements
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/16/ref/del.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/simple.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/assignment.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/genindex.html| ]]
|
Next: 6.5 The del statement Up: 6. Simple statements Previous: 6.3 Assignment statements