[Python-bugs-list] [ python-Bugs-561825 ] Confusing error for "del f()"

noreply@sourceforge.net noreply@sourceforge.net
Fri, 31 May 2002 07:09:53 -0700


Bugs item #561825, was opened at 2002-05-29 07:09
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=561825&group_id=5470

Category: Python Interpreter Core
Group: Python 2.2.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Andrew Bennetts (spiv)
Assigned to: Nobody/Anonymous (nobody)
>Summary: Confusing error for "del f()"

Initial Comment:
>>> del f()
SyntaxError: can't assign to function call

I think this should be something more like:

SyntaxError: can't delete function call

I'm using Python 2.2.1 on Windows.

----------------------------------------------------------------------

>Comment By: Jeremy Hylton (jhylton)
Date: 2002-05-31 14:09

Message:
Logged In: YES 
user_id=31392

Fixed in rev. 2.245 of compile.c.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=561825&group_id=5470