In code, list.clear doesn't throw error - it's just ignored

Karsten Hilbert Karsten.Hilbert at gmx.net
Mon Nov 14 05:46:14 EST 2022


Am Mon, Nov 14, 2022 at 02:13:34AM +0000 schrieb MRAB:

> But if it's an expression where it's expecting a statement and it's not a call, then
> it's probably a bug.

That "probably" makes it suitable for a linter, as was pointed out.

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B


More information about the Python-list mailing list