[ZCM] [ZC] 1809/ 2 Reject "return with wrong keywords results in
wrong error message"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Tue Aug 2 05:19:27 EDT 2005
Issue #1809 Update (Reject) "return with wrong keywords results in wrong error message"
Status Rejected, Zope/bug low
To followup, visit:
http://www.zope.org/Collectors/Zope/1809
==============================================================
= Reject - Entry #2 by ajung on Aug 2, 2005 5:19 am
Status: Pending => Rejected
test(a=something, b)
is not even allowed in Python (wrong parameter ordering).
________________________________________
= Request - Entry #1 by Anonymous User on Jun 13, 2005 11:22 am
A Python Script of this form:
return test(a=a, b)
results in the error message:
'return' outside function (Script (Python), line 1)
instead of:
non-keyword arg after keyword arg (Script (Python), line 1)
This influences the parsing of the whole script. If such a buggy line is present anywhere in the Script, the first return found gives the error message "'return' outside function".
==============================================================
More information about the Zope-Collector-Monitor
mailing list