[New-bugs-announce] [issue46298] Automatically check for __slots__-mistakes in Lib

Arie Bovenberg report at bugs.python.org
Fri Jan 7 15:05:51 EST 2022


New submission from Arie Bovenberg <a.c.bovenberg at gmail.com>:

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

----------
components: Library (Lib), Tests
messages: 410023
nosy: ariebovenberg
priority: normal
severity: normal
status: open
title: Automatically check for __slots__-mistakes in Lib
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46298>
_______________________________________


More information about the New-bugs-announce mailing list