Commit 5292a85
Fix __slots__ to accept list form, not just tuples
__build_class__ only accepted tuple for __slots__; list was silently
ignored. Now accepts both tuple and list, matching Python 3.12 spec.
Both forms properly suppress inst_dict and raise AttributeError for
non-slot attribute assignment.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 681df79 commit 5292a85
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1343 | 1343 | | |
1344 | 1344 | | |
1345 | 1345 | | |
1346 | | - | |
| 1346 | + | |
1347 | 1347 | | |
1348 | 1348 | | |
1349 | 1349 | | |
| 1350 | + | |
1350 | 1351 | | |
1351 | 1352 | | |
1352 | 1353 | | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1353 | 1357 | | |
1354 | 1358 | | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
1358 | 1364 | | |
1359 | 1365 | | |
1360 | 1366 | | |
| |||
0 commit comments