>
> I've seen people writting
>
> timestamp, name, _, permission = get_next_entry()
>
> The drawback is that your reader loose the information that you're
> expecting fsize as 3rd element. It may be worth it though.
> You just have to make sure that '_' is identified  as a dummy variable
> in your pylint rules.

I've modified my .pylintrc file to have the following:

dummy-variables-rgx=(_|dummy|(unused.*))

which would allow me to have:

timestamp, name, dummy, permission = get_next_entry()

or the self-documenting:

timestamp, name, unused_fsize, permission = get_next_entry()

D.

_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to