python / python/cpython

`_PyStaticType_Dealloc` should not exist.

オープン
#101,603 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@ericsnowcurrently がすでに取り組んでいます。

2023年2月6日 から。

interpreter-core type-bug
主要言語
Python
スター
77.2k
フォーク
36k
PR マージ指標
PR 指標を取得中

説明

This the twin to https://github.com/python/cpython/issues/96458, and the same reasoning applies.
If something is static it cannot be deallocated.

AFAICT, this clears subclasses of the static type, and doesn't deallocate the class.
The (class, subclass) relation for static types is an attribute of the interpreter not the class, so _PyStaticType_Dealloc needs to be renamed, at least.

_PyStaticType_Dealloc also allocates int objects, which is problematic during interpreter cleanup, as the MemoryError cache may be cleared first.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。