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

repeated keyword arguments #47469

Closed
gangesmaster mannequin opened this issue Jun 27, 2008 · 4 comments
Closed

repeated keyword arguments #47469

gangesmaster mannequin opened this issue Jun 27, 2008 · 4 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@gangesmaster
Copy link
Mannequin

gangesmaster mannequin commented Jun 27, 2008

BPO 3219
Nosy @gvanrossum, @giampaolo, @benjaminp
Files
  • repeated_kwargs.patch
  • 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 2008-07-01.19:35:30.173>
    created_at = <Date 2008-06-27.19:17:45.795>
    labels = ['interpreter-core', 'type-bug']
    title = 'repeated keyword arguments'
    updated_at = <Date 2008-07-01.19:35:30.172>
    user = 'https://bugs.python.org/gangesmaster'

    bugs.python.org fields:

    activity = <Date 2008-07-01.19:35:30.172>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-07-01.19:35:30.173>
    closer = 'benjamin.peterson'
    components = ['Interpreter Core']
    creation = <Date 2008-06-27.19:17:45.795>
    creator = 'gangesmaster'
    dependencies = []
    files = ['10755']
    hgrepos = []
    issue_num = 3219
    keywords = ['patch']
    message_count = 4.0
    messages = ['68847', '68852', '68862', '69059']
    nosy_count = 4.0
    nosy_names = ['gvanrossum', 'gangesmaster', 'giampaolo.rodola', 'benjamin.peterson']
    pr_nums = []
    priority = 'critical'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue3219'
    versions = ['Python 2.6', 'Python 3.0']

    @gangesmaster
    Copy link
    Mannequin Author

    gangesmaster mannequin commented Jun 27, 2008

    under python 2.5 (and possibly 2.6 beta), the following code runs
    successfully:

    >>> def f(**kwargs):
    ...     print kwargs
    ...
    >>> f(a=5,b=7,a=8)
    {'a': 8, 'b': 7}

    while in python 2.4, it fails as expected (complaining that "a" is given
    twice")

    http://mail.python.org/pipermail/python-dev/2008-June/080782.html

    @gangesmaster gangesmaster mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error labels Jun 27, 2008
    @benjaminp
    Copy link
    Contributor

    The attached patch gives a SyntaxError.

    @gvanrossum
    Copy link
    Member

    Don't do this for 2.5 please.

    @benjaminp
    Copy link
    Contributor

    Done for 2.6 in r64622. (Georg reviewed.)

    @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) type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants