On Thu, Oct 7, 2010 at 1:12 PM,  <mafeu...@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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to