Skip to content

Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?) #84141

Description

@MatzeB
mannequin
BPO 39960
Nosy @gvanrossum, @scoder, @encukou, @miss-islington, @MatzeB, @david-caro
PRs
  • bpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattro()" #21092
  • [3.9] bpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattro()" (GH-21092) #21288
  • [3.8] bpo-39960: Allow heap types in the "Carlo Verre" hack check that override "tp_setattro()" (GH-21092) #21339
  • bpo-41295: Allow overriding __setattr__ on multiple inheritance #21473
  • Files
  • demomodule.zip: Minimal extension module overriding tp_setattro
  • 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-09-20.07:49:10.772>
    created_at = <Date 2020-03-13.22:31:04.481>
    labels = ['expert-C-API', 'type-bug', '3.8', '3.9', '3.10']
    title = 'Using typename.__setattr__ in extension type with Py_TPFLAGS_HEAPTYPE is broken (hackcheck too eager?)'
    updated_at = <Date 2020-09-20.07:49:10.771>
    user = 'https://github.com/MatzeB'

    bugs.python.org fields:

    activity = <Date 2020-09-20.07:49:10.771>
    actor = 'scoder'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-09-20.07:49:10.772>
    closer = 'scoder'
    components = ['C API']
    creation = <Date 2020-03-13.22:31:04.481>
    creator = 'Matthias Braun'
    dependencies = []
    files = ['48974']
    hgrepos = []
    issue_num = 39960
    keywords = ['patch']
    message_count = 20.0
    messages = ['364123', '371932', '371976', '372020', '372024', '372179', '372202', '372882', '372895', '372896', '372898', '373043', '373044', '373052', '373647', '373648', '373875', '373877', '373882', '377210']
    nosy_count = 6.0
    nosy_names = ['gvanrossum', 'scoder', 'petr.viktorin', 'miss-islington', 'Matthias Braun', 'David Caro']
    pr_nums = ['21092', '21288', '21339', '21473']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue39960'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions