
[Extracted from the psa-members list...] Gordon McMillan wrote:
Hmm, it seems to be a failry generic error:
del f(x,y) SyntaxError: can't assign to function call
How about chainging the com_assign_trailer function in Python/compile.c to: static void com_assign_trailer(c, n, assigning) struct compiling *c; node *n; int assigning; { REQ(n, trailer); switch (TYPE(CHILD(n, 0))) { case LPAR: /* '(' [exprlist] ')' */ com_error(c, PyExc_SyntaxError, assigning ? "can't assign to function call": "can't delete expression"); break; case DOT: /* '.' NAME */ com_assign_attr(c, CHILD(n, 1), assigning); break; case LSQB: /* '[' subscriptlist ']' */ com_subscriptlist(c, CHILD(n, 1), assigning); break; default: com_error(c, PyExc_SystemError, "unknown trailer type"); } } or something along those lines... BTW, has anybody tried my import patch recently ? I haven't heard any citicism since posting it and wonder what made the list fall asleep over the topic :-) -- Marc-Andre Lemburg ______________________________________________________________________ Y2000: 61 days left Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/

How about chainging the com_assign_trailer function in Python/compile.c to:
Please don't use the python-dev list for issues like this. The place to go is the python-bugs database (http://www.python.org/search/search_bugs.html) or you could just send me a patch (please use a context diff and include the standard disclaimer language). --Guido van Rossum (home page: http://www.python.org/~guido/)

Guido van Rossum wrote:
This wasn't really a bug report... I was actually looking for some feedback prior to sending a real (context) patch. -- Marc-Andre Lemburg ______________________________________________________________________ Y2000: 60 days left Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/

How about chainging the com_assign_trailer function in Python/compile.c to:
Please don't use the python-dev list for issues like this. The place to go is the python-bugs database (http://www.python.org/search/search_bugs.html) or you could just send me a patch (please use a context diff and include the standard disclaimer language). --Guido van Rossum (home page: http://www.python.org/~guido/)

Guido van Rossum wrote:
This wasn't really a bug report... I was actually looking for some feedback prior to sending a real (context) patch. -- Marc-Andre Lemburg ______________________________________________________________________ Y2000: 60 days left Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
participants (2)
-
Guido van Rossum
-
M.-A. Lemburg