(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/pass.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/print.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.4 The pass statement Up: 6. Simple statements Next: 6.6 The print statement
6.5 The del statement
del_stmt: "del" target_list
Deletion is recursively defined very similar to the way assignment is defined. Rather that spelling it out in full details, here are some hints.
Deletion of a target list recursively deletes each target, from left to right.
Deletion of a name removes the binding of that name (which must exist) from the local or global namespace, depending on whether the name occurs in a global statement in the same code block.
Deletion of attribute references, subscriptions and slicings is passed to the primary object involved; deletion of a slicing is in general equivalent to assignment of an empty slice of the right type (but even this is determined by the sliced object).
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/pass.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/print.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.4 The pass statement Up: 6. Simple statements Next: 6.6 The print statement
See About this document... for information on suggesting changes.