Hi. I'd like to be able to write a loop such as: for i in range(10): pass but without the i variable. The reason for this is I'm using pylint and it complains about the unused variable i. I can achieve the above with more lines of code like: i = 0 while (i != 10): i += 1 Is there a concise way to accomplish this without adding extra lines of codes? Thanks in advance for your help. -- http://mail.python.org/mailman/listinfo/python-list
- for loop without variable erik gartz
- Re: for loop without variable Fredrik Lundh
- Re: for loop without variable Tim Chase
- Re: for loop without variable John Machin
- Re: for loop without variable Diez B. Roggisch
- Conventions for dummy name (was: fo... Ben Finney
- Re: Conventions for dummy name ... MRAB
- Re: Conventions for dummy name ... Jeroen Ruigrok van der Werven
- Re: Conventions for dummy name Torsten Bronger
- SV: Conventions for dummy n... David.Reksten
- Re: Conventions for dummy n... Torsten Bronger