Repository navigation
Commit 84b95a8
Disable type caching for custom MRO hierarchies (#9477)
* Disable type caching for custom MRO hierarchies
Track permanent version-tag ineligibility after custom MRO publication and
bases changes, propagate it through version assignment, and retain existing
MCACHE invalidation. Restore canonical metaclass doctests through update_lib.
Assisted-by: OpenAI Codex: model version unavailable
* Align custom MRO cache field with CPython naming
Use tp_versions_used and the CPython ATTR_CACHE_UNUSED sentinel for permanent cache exclusion. Keep the existing zero/sentinel state behavior and atomic ordering; per-type version budgeting remains unimplemented.
Assisted-by: OpenAI Codex: model version unavailable
---------
Co-authored-by: Codex <[email protected]>1 parent 9f8540c commit 84b95a8
3 files changed
Lines changed: 65 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
| 295 | + | |
297 | 296 | | |
298 | 297 | | |
299 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| |||
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
721 | 727 | | |
722 | 728 | | |
723 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
724 | 733 | | |
725 | 734 | | |
726 | 735 | | |
| |||
1135 | 1144 | | |
1136 | 1145 | | |
1137 | 1146 | | |
| 1147 | + | |
1138 | 1148 | | |
1139 | 1149 | | |
1140 | 1150 | | |
| |||
1198 | 1208 | | |
1199 | 1209 | | |
1200 | 1210 | | |
| 1211 | + | |
1201 | 1212 | | |
1202 | 1213 | | |
1203 | 1214 | | |
| |||
2793 | 2804 | | |
2794 | 2805 | | |
2795 | 2806 | | |
| 2807 | + | |
2796 | 2808 | | |
2797 | 2809 | | |
2798 | 2810 | | |
| |||
3785 | 3797 | | |
3786 | 3798 | | |
3787 | 3799 | | |
| 3800 | + | |
| 3801 | + | |
| 3802 | + | |
| 3803 | + | |
| 3804 | + | |
| 3805 | + | |
| 3806 | + | |
| 3807 | + | |
| 3808 | + | |
| 3809 | + | |
| 3810 | + | |
| 3811 | + | |
| 3812 | + | |
| 3813 | + | |
| 3814 | + | |
| 3815 | + | |
| 3816 | + | |
| 3817 | + | |
| 3818 | + | |
| 3819 | + | |
| 3820 | + | |
| 3821 | + | |
| 3822 | + | |
| 3823 | + | |
| 3824 | + | |
| 3825 | + | |
| 3826 | + | |
| 3827 | + | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
| 3831 | + | |
| 3832 | + | |
| 3833 | + | |
| 3834 | + | |
3788 | 3835 | | |
3789 | 3836 | | |
3790 | 3837 | | |
3791 | | - | |
3792 | | - | |
3793 | | - | |
3794 | | - | |
3795 | | - | |
3796 | | - | |
| 3838 | + | |
| 3839 | + | |
| 3840 | + | |
| 3841 | + | |
| 3842 | + | |
| 3843 | + | |
| 3844 | + | |
| 3845 | + | |
| 3846 | + | |
3797 | 3847 | | |
3798 | 3848 | | |
3799 | 3849 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3324 | 3324 | | |
3325 | 3325 | | |
3326 | 3326 | | |
| 3327 | + | |
3327 | 3328 | | |
3328 | 3329 | | |
3329 | 3330 | | |
| |||
3334 | 3335 | | |
3335 | 3336 | | |
3336 | 3337 | | |
| 3338 | + | |
3337 | 3339 | | |
3338 | 3340 | | |
3339 | 3341 | | |
| |||
3348 | 3350 | | |
3349 | 3351 | | |
3350 | 3352 | | |
| 3353 | + | |
3351 | 3354 | | |
3352 | 3355 | | |
3353 | 3356 | | |
| |||
3395 | 3398 | | |
3396 | 3399 | | |
3397 | 3400 | | |
| 3401 | + | |
3398 | 3402 | | |
3399 | 3403 | | |
3400 | 3404 | | |
| |||
0 commit comments