Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

_PyObject_StoreInstanceAttribute assertion fails in setattr after __dict__.clear() #117750

Closed
Assignees
markshannon
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)release-blockertype-bugAn unexpected behavior, bug, or error
@encukou

Description

@encukou

Bug report

Bug description:

On current main (edit: debug build),

classC:def__init__(self):self.__dict__.clear()obj=C()obj.foo=None

fails with:

python: Objects/dictobject.c:6704: _PyObject_StoreInstanceAttribute: Assertion 'dict->ma_values == values' failed.

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Notes

Originally reported here:https://discuss.python.org/t/python-3-12-3-and-3-13-0a6-released/50601/2

Linked PRs

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)release-blockertype-bugAn unexpected behavior, bug, or error

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp