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

Add pickle support of dict views #67453

Closed
serhiy-storchaka opened this issue Jan 18, 2015 · 8 comments
Closed

Add pickle support of dict views #67453

serhiy-storchaka opened this issue Jan 18, 2015 · 8 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@serhiy-storchaka
Copy link
Member

BPO 23264
Nosy @gvanrossum, @rhettinger, @pitrou, @avassalotti, @serhiy-storchaka, @MojoVampire
Files
  • pickle_dictviews.patch
  • pickle_dictviews_2.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 = 'https://github.com/serhiy-storchaka'
    closed_at = <Date 2016-06-07.09:18:15.793>
    created_at = <Date 2015-01-18.08:11:56.829>
    labels = ['interpreter-core', 'type-feature']
    title = 'Add pickle support of dict views'
    updated_at = <Date 2016-06-07.09:18:15.791>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2016-06-07.09:18:15.791>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2016-06-07.09:18:15.793>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2015-01-18.08:11:56.829>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = ['37758', '38015']
    hgrepos = []
    issue_num = 23264
    keywords = ['patch']
    message_count = 8.0
    messages = ['234225', '234243', '235394', '267296', '267320', '267325', '267384', '267605']
    nosy_count = 6.0
    nosy_names = ['gvanrossum', 'rhettinger', 'pitrou', 'alexandre.vassalotti', 'serhiy.storchaka', 'josh.r']
    pr_nums = []
    priority = 'normal'
    resolution = 'rejected'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue23264'
    versions = ['Python 3.5']

    @serhiy-storchaka
    Copy link
    Member Author

    For now dict views are not pickleable in Python 3 (unlike to Python 2 and unlike to dict view iterators). Proposed patch adds pickle support of dict views.

    @serhiy-storchaka serhiy-storchaka added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Jan 18, 2015
    @pitrou
    Copy link
    Member

    pitrou commented Jan 18, 2015

    This looks good to me, thank you.

    @serhiy-storchaka
    Copy link
    Member Author

    Thanks Antoine. Do you have objections Raymond? I'm going to provide similar patch for MappingView.

    More robust tests in updated patch.

    @serhiy-storchaka serhiy-storchaka self-assigned this Feb 4, 2015
    @gvanrossum
    Copy link
    Member

    Why no docs?

    @serhiy-storchaka
    Copy link
    Member Author

    What docs are needed?

    @gvanrossum
    Copy link
    Member

    On general I think we should always document whether a class is picklable.
    And we should document how a subclass can hook into pickling.

    --Guido (mobile)

    @gvanrossum
    Copy link
    Member

    Hm, I no longer think this is a good idea. See http://bugs.python.org/issue23401#msg267383 .

    @serhiy-storchaka
    Copy link
    Member Author

    Thank you for your attention Guido.

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

    No branches or pull requests

    3 participants