Is this a "gotcha" in Python?

Skip Montanaro skip.montanaro at gmail.com
Mon Apr 22 17:28:10 EDT 2019


> Not quite. The single-letter names mean "I am an iterator/index/etc",
> but "_" means "I am not used anywhere".

Small addendum to this. pyflakes (at least in my experience) doesn't
interpret "_" as a variable name or prefix to a local variable as
"unused".

Skip



More information about the Python-list mailing list