This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Automatically check for __slots__-mistakes in Lib
Type: Stage:
Components: Library (Lib), Tests Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ariebovenberg
Priority: normal Keywords:

Created on 2022-01-07 20:05 by ariebovenberg, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg410023 - (view) Author: Arie Bovenberg (ariebovenberg) * Date: 2022-01-07 20:05
Recently, I've identified some __slots__-related mistakes in the stdlib (bpo-46247, bpo-46244, bpo-46246).

Looking forward, it'd be wise to automate this check so mistakes don't creep into the code in the future.

Implementation-wise, the most straightforward solution would be a single test that walks all Lib/ (sub)modules and checks all classes.

Perhaps those with more experience in the test suite can chime in where this check might live
History
Date User Action Args
2022-04-11 14:59:54adminsetgithub: 90456
2022-01-07 20:05:51ariebovenbergcreate