Chris Rebert <c...@rebertia.com> wrote:
>On Thu, Oct 7, 2010 at 1:12 PM,  <mafeu...@gmail.com> wrote:
>>
>> 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

This kind of confusion is, in my opinion, the primary reason why
parentheses should never be used with "del" and "return", as we so commonly
see.
-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to