[Python-3000] removing destructuring del

Andrew Dalke dalke at dalkescientific.com
Fri Feb 22 23:00:35 CET 2008


On Feb 22, 2008, at 10:49 PM, Guido van Rossum wrote:
>>>>> del []
>>>>> del ()
>>    File "<stdin>", line 1
>>  SyntaxError: can't assign to ()
>>>>>
>
> The only bug I see here is that it doesn't complain about "del []".

I expected it to say "can't delete" instead of "can't assign"

 >>> del 1
SyntaxError: can't delete literal (<stdin>, line 1)


> I guess if you're really motivated to get this through, you'll have to
> submit a patch, including unittests and doc updates.

I figured that was a likely response - and it's better than "nope" or  
"too late".  Mmm, _ast.c, I presume?  Let me find my pith helmet.  :)



				Andrew
				dalke at dalkescientific.com




More information about the Python-3000 mailing list