Skip to content

Frozen dataclass deep copy doesn't work with __slots__ #89683

Closed
@jfuruness

Description

@jfuruness
mannequin
BPO 45520
Nosy @ericvsmith, @MojoVampire, @jfuruness, @sobolevn
PRs
  • [3.9] bpo-45520: Backport __getstate__, __setstate__ methods for dataclasses from 3.10 into 3.9 (GH-25786) #29147
  • 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 = None
    created_at = <Date 2021-10-18.23:18:22.340>
    labels = ['type-bug', '3.9', '3.10']
    title = "Frozen dataclass deep copy doesn't work with __slots__"
    updated_at = <Date 2021-10-22.08:08:50.197>
    user = 'https://github.com/jfuruness'

    bugs.python.org fields:

    activity = <Date 2021-10-22.08:08:50.197>
    actor = 'sobolevn'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2021-10-18.23:18:22.340>
    creator = 'jfuruness'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45520
    keywords = ['patch']
    message_count = 5.0
    messages = ['404245', '404260', '404273', '404354', '404525']
    nosy_count = 4.0
    nosy_names = ['eric.smith', 'josh.r', 'jfuruness', 'sobolevn']
    pr_nums = ['29147']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45520'
    versions = ['Python 3.9', 'Python 3.10']

    Linked PRs

    Metadata

    Metadata

    Assignees

    Labels

    3.12only security fixes3.13bugs and security fixes3.14bugs and security fixesstdlibPython modules in the Lib dirtopic-dataclassestype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions