del() function - cannot find documentation
Chris Rebert
clp2 at rebertia.com
Thu Oct 7 16:17:23 EDT 2010
On Thu, Oct 7, 2010 at 1:12 PM, <mafeusek at gmail.com> wrote:
> Hallo ML.
>
> there is following python script:
>
> mine = { 1: "sd", 2: "mk" }
> del(mine[1])
> print mine
>
> the problem is I cannot find any information about del() function in
> python 2.7 documentation.
> is it a documentation bug or I misunderstand something about del()?
del is a *statement*, *not* a function:
http://docs.python.org/reference/simple_stmts.html#the-del-statement
Cheers,
Chris
--
http://blog.rebertia.com
More information about the Python-list
mailing list