Bugs item #1474677, was opened at 2006-04-22 09:11 Message generated for change (Comment added) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1474677&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Parser/Compiler Group: Python 2.5 >Status: Closed >Resolution: Fixed Priority: 7 Submitted By: George Yoshida (quiver) Assigned to: Neal Norwitz (nnorwitz) Summary: non-keyword argument following keyword Initial Comment: def foo(a,b=None):pass foo(b=1,2) With Python 2.5(compiled as of 2006-04-23), this code runs without any error. In older Python(although I didn't check every version of it), I get File "foo.py", line 2 foo(b=1,2) SyntaxError: non-keyword arg after keyword arg ---------------------------------------------------------------------- >Comment By: Neal Norwitz (nnorwitz) Date: 2006-05-18 23:44 Message: Logged In: YES user_id=33168 Thanks! I modified the patch a bit. seen_kw wasn't necessary since nkeywords works just as well. Committed revision 46045. ---------------------------------------------------------------------- Comment By: Georg Brandl (gbrandl) Date: 2006-04-29 06:51 Message: Logged In: YES user_id=849994 Patch attached. ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2006-04-24 22:48 Message: Logged In: YES user_id=33168 Confirmed 2.5 behaviour and regression from 2.[34]. ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2006-04-24 22:47 Message: Logged In: YES user_id=33168 Jeremy, could you look at this? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1474677&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com