Skip to content

Cannot pickle frozen dataclasses with slots #88165

@ericvsmith

Description

@ericvsmith
BPO 43999
Nosy @ericvsmith
PRs
  • bpo-43999: If using a frozen class with slots, add __getstate__ and __setstate__ #25786
  • 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/ericvsmith'
    closed_at = <Date 2021-05-01.17:30:03.279>
    created_at = <Date 2021-05-01.16:03:38.926>
    labels = ['deferred-blocker', 'type-bug', 'library', '3.10']
    title = 'Cannot pickle frozen dataclasses with slots'
    updated_at = <Date 2021-05-01.21:09:25.898>
    user = 'https://github.com/ericvsmith'

    bugs.python.org fields:

    activity = <Date 2021-05-01.21:09:25.898>
    actor = 'eric.smith'
    assignee = 'eric.smith'
    closed = True
    closed_date = <Date 2021-05-01.17:30:03.279>
    closer = 'eric.smith'
    components = ['Library (Lib)']
    creation = <Date 2021-05-01.16:03:38.926>
    creator = 'eric.smith'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43999
    keywords = ['patch']
    message_count = 1.0
    messages = ['392603']
    nosy_count = 1.0
    nosy_names = ['eric.smith']
    pr_nums = ['25786']
    priority = 'deferred blocker'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue43999'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixesdeferred-blockerstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions