What to use for finding as many syntax errors as possible.

Robert Latest boblatest at yahoo.com
Mon Oct 10 13:06:37 EDT 2022


Michael F. Stemper wrote:
> How does one declare a variable in python? Sometimes it'd be nice to
> be able to have declarations and any undeclared variable be flagged.

To my knowledge, the closest to that is using __slots__ in class definitions.
Many a time have I assigned to misspelled class members until I discovered
__slots__.


More information about the Python-list mailing list