Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non-keyword argument following keyword #43262

Closed
quiver mannequin opened this issue Apr 22, 2006 · 5 comments
Closed

non-keyword argument following keyword #43262

quiver mannequin opened this issue Apr 22, 2006 · 5 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@quiver
Copy link
Mannequin

quiver mannequin commented Apr 22, 2006

BPO 1474677
Nosy @birkenfeld
Files
  • kwargs-last.diff
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2006-05-19.06:44:13.000>
    created_at = <Date 2006-04-22.16:11:44.000>
    labels = ['interpreter-core']
    title = 'non-keyword argument following keyword'
    updated_at = <Date 2006-05-19.06:44:13.000>
    user = 'https://bugs.python.org/quiver'

    bugs.python.org fields:

    activity = <Date 2006-05-19.06:44:13.000>
    actor = 'nnorwitz'
    assignee = 'nnorwitz'
    closed = True
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2006-04-22.16:11:44.000>
    creator = 'quiver'
    dependencies = []
    files = ['1982']
    hgrepos = []
    issue_num = 1474677
    keywords = []
    message_count = 5.0
    messages = ['28325', '28326', '28327', '28328', '28329']
    nosy_count = 3.0
    nosy_names = ['nnorwitz', 'georg.brandl', 'quiver']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1474677'
    versions = ['Python 2.5']

    @quiver
    Copy link
    Mannequin Author

    quiver mannequin commented Apr 22, 2006

      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

    @quiver quiver mannequin closed this as completed Apr 22, 2006
    @quiver quiver mannequin assigned nnorwitz Apr 22, 2006
    @quiver quiver mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Apr 22, 2006
    @quiver quiver mannequin closed this as completed Apr 22, 2006
    @quiver quiver mannequin assigned nnorwitz Apr 22, 2006
    @quiver quiver mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Apr 22, 2006
    @nnorwitz
    Copy link
    Mannequin

    nnorwitz mannequin commented Apr 25, 2006

    Logged In: YES
    user_id=33168

    Jeremy, could you look at this?

    @nnorwitz
    Copy link
    Mannequin

    nnorwitz mannequin commented Apr 25, 2006

    Logged In: YES
    user_id=33168

    Confirmed 2.5 behaviour and regression from 2.[34].

    @birkenfeld
    Copy link
    Member

    Logged In: YES
    user_id=849994

    Patch attached.

    @nnorwitz
    Copy link
    Mannequin

    nnorwitz mannequin commented May 19, 2006

    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.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    interpreter-core (Objects, Python, Grammar, and Parser dirs)
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant