Commit 90532ce
committed
gh-135385: Do not reserve inline values for attributes stored in slots
__static_attributes__ contains every name assigned as self.X in the class
body, and all of them were inserted into the shared keys of the class. An
attribute stored in a slot is never stored in the instance dict, so the
inline values reserved for it on every instance were never used.1 parent ae93e42 commit 90532ce
2 files changed
Lines changed: 8 additions & 0 deletions
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Objects
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7286 | 7286 | | |
7287 | 7287 | | |
7288 | 7288 | | |
| 7289 | + | |
| 7290 | + | |
| 7291 | + | |
| 7292 | + | |
| 7293 | + | |
7289 | 7294 | | |
7290 | 7295 | | |
7291 | 7296 | | |
| |||
0 commit comments