Skip to content

dataclasses slots with init=False field raises AttributeException #88815

@tefra

Description

@tefra
mannequin
BPO 44649
Nosy @ericvsmith, @miss-islington, @tefra
PRs
  • bpo-44649: Fix dataclasses(slots=True) with a field with a default, but init=False #29692
  • [3.10] bpo-44649: Fix dataclasses(slots=True) with a field with a default, but init=False (GH-29692) #29704
  • 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-11-22.13:29:26.395>
    created_at = <Date 2021-07-15.19:06:03.054>
    labels = ['type-bug', 'library', '3.10', '3.11']
    title = 'dataclasses slots with init=False field raises AttributeException'
    updated_at = <Date 2021-11-22.13:47:49.731>
    user = 'https://github.com/tefra'

    bugs.python.org fields:

    activity = <Date 2021-11-22.13:47:49.731>
    actor = 'miss-islington'
    assignee = 'eric.smith'
    closed = True
    closed_date = <Date 2021-11-22.13:29:26.395>
    closer = 'eric.smith'
    components = ['Library (Lib)']
    creation = <Date 2021-07-15.19:06:03.054>
    creator = 'tefra'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44649
    keywords = ['patch']
    message_count = 7.0
    messages = ['397575', '397653', '397678', '401039', '406772', '406774', '406776']
    nosy_count = 3.0
    nosy_names = ['eric.smith', 'miss-islington', 'tefra']
    pr_nums = ['29692', '29704']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue44649'
    versions = ['Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixes3.11only security fixesstdlibStandard 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