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

mappingproxy isn't reversible #84454

Closed
jack1142 mannequin opened this issue Apr 13, 2020 · 4 comments
Closed

mappingproxy isn't reversible #84454

jack1142 mannequin opened this issue Apr 13, 2020 · 4 comments
Labels
3.9 only security fixes easy type-feature A feature request or enhancement

Comments

@jack1142
Copy link
Mannequin

jack1142 mannequin commented Apr 13, 2020

BPO 40273
Nosy @rhettinger, @ZackerySpytz, @remilapeyre, @jack1142
PRs
  • bpo-40273: Reversible mappingproxy #19513
  • 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 2020-05-21.15:20:07.983>
    created_at = <Date 2020-04-13.13:54:42.313>
    labels = ['easy', 'type-feature', '3.9']
    title = "mappingproxy isn't reversible"
    updated_at = <Date 2020-05-21.15:20:07.982>
    user = 'https://github.com/jack1142'

    bugs.python.org fields:

    activity = <Date 2020-05-21.15:20:07.982>
    actor = 'rhettinger'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-05-21.15:20:07.983>
    closer = 'rhettinger'
    components = []
    creation = <Date 2020-04-13.13:54:42.313>
    creator = 'jack1142'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 40273
    keywords = ['patch', 'easy (C)']
    message_count = 4.0
    messages = ['366315', '366321', '368421', '369522']
    nosy_count = 4.0
    nosy_names = ['rhettinger', 'ZackerySpytz', 'remi.lapeyre', 'jack1142']
    pr_nums = ['19513']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue40273'
    versions = ['Python 3.9']

    @jack1142
    Copy link
    Mannequin Author

    jack1142 mannequin commented Apr 13, 2020

    Starting in version 3.8, dicts are reversible so it would make sense if mapping proxy were also reversible. Especially that reversed(proxied_dict.keys()) does work.

    @jack1142 jack1142 mannequin added 3.8 only security fixes 3.9 only security fixes type-feature A feature request or enhancement labels Apr 13, 2020
    @rhettinger
    Copy link
    Contributor

    This seems reasonable.

    +1

    @rhettinger rhettinger added easy and removed 3.8 only security fixes labels Apr 13, 2020
    @rhettinger
    Copy link
    Contributor

    New changeset 02fa0ea by Zackery Spytz in branch 'master':
    bpo-40273: Reversible mappingproxy (FH-19513)
    02fa0ea

    @remilapeyre
    Copy link
    Mannequin

    remilapeyre mannequin commented May 21, 2020

    I think this issue can be closed thanks to Zackery Spytz.

    @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
    3.9 only security fixes easy type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant