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

SourceForge.net noreply at sourceforge.net
Sat Apr 22 18:11:44 CEST 2006


Bugs item #1474677, was opened at 2006-04-23 01:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: 5
Submitted By: George Yoshida (quiver)
Assigned to: Nobody/Anonymous (nobody)
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


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

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