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

dictionary unpacking operator in dict expression #70676

Closed
guoci mannequin opened this issue Mar 5, 2016 · 3 comments
Closed

dictionary unpacking operator in dict expression #70676

guoci mannequin opened this issue Mar 5, 2016 · 3 comments
Labels
type-feature A feature request or enhancement

Comments

@guoci
Copy link
Mannequin

guoci mannequin commented Mar 5, 2016

BPO 26489
Nosy @berkerpeksag, @guoci
Files
  • unpack_in_dict.patch: 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 2016-03-06.14:55:02.556>
    created_at = <Date 2016-03-05.22:00:40.822>
    labels = ['type-feature']
    title = 'dictionary unpacking operator in dict expression'
    updated_at = <Date 2016-03-06.14:55:02.554>
    user = 'https://github.com/guoci'

    bugs.python.org fields:

    activity = <Date 2016-03-06.14:55:02.554>
    actor = 'berker.peksag'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-03-06.14:55:02.556>
    closer = 'berker.peksag'
    components = ['Demos and Tools']
    creation = <Date 2016-03-05.22:00:40.822>
    creator = 'guoci'
    dependencies = []
    files = ['42075']
    hgrepos = []
    issue_num = 26489
    keywords = ['patch']
    message_count = 3.0
    messages = ['261226', '261255', '261256']
    nosy_count = 3.0
    nosy_names = ['python-dev', 'berker.peksag', 'guoci']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue26489'
    versions = ['Python 3.5', 'Python 3.6']

    @guoci
    Copy link
    Mannequin Author

    guoci mannequin commented Mar 5, 2016

    The attached patch enables the unparse.py tool to unparse dictionary unpacking operators (**) in a dict expression, for example,

    {**{'y': 2}, 'x': 1}

    , as described in PEP-0448.

    @guoci guoci mannequin added the type-feature A feature request or enhancement label Mar 5, 2016
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Mar 6, 2016

    New changeset a34428aff42d by Berker Peksag in branch '3.5':
    Issue bpo-26489: Add dictionary unpacking support to Tools/parser/unparse.py
    https://hg.python.org/cpython/rev/a34428aff42d

    New changeset 1b212e366b66 by Berker Peksag in branch 'default':
    Issue bpo-26489: Add dictionary unpacking support to Tools/parser/unparse.py
    https://hg.python.org/cpython/rev/1b212e366b66

    @berkerpeksag
    Copy link
    Member

    Thanks for the patch! Could you please sign the contributor's agreement at https://www.python.org/psf/contrib/contrib-form/ ?

    @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
    type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant