[ python-Bugs-1474677 ] non-keyword argument following keyword

SourceForge.net noreply at sourceforge.net
Thu May 18 09:27:51 CEST 2006


Bugs item #1474677, was opened at 2006-04-22 16:11
Message generated for change (Settings changed) made by gbrandl
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: Open
Resolution: None
>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: Georg Brandl (gbrandl)
Date: 2006-04-29 13:51

Message:
Logged In: YES 
user_id=849994

Patch attached.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2006-04-25 05: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-25 05: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


More information about the Python-bugs-list mailing list