ignoring a part of returned tuples

noamtm noamtm at gmail.com
Wed Jul 4 08:25:01 EDT 2007


On Jul 4, 11:29 am, Bruno Desthuilliers <bruno.
42.desthuilli... at wtf.websiteburo.oops.com> wrote:

> A common idiom is to use '_' for unused values, ie:
>
> for (dirpath, _, filenames) in os.walk(...):

That's what I need - this avoids PyLint telling me that I have an
unused variable, and also makes it clear that this value is not used.

Thanks!




More information about the Python-list mailing list