for _ in range(self.steps):
    pass

On Fri, Dec 18, 2009 at 4:04 AM, viktoras <[email protected]> wrote:
> hi,
> it's not really maya related, but got me curious:
>
>        for i in range(self.steps):
>            self.runRelaxStep()
>
> this piece of code is giving me "unused variable i" warning in my IDE
> (eclipse+pydev), which
> is kinda true - i don't use "i", but i must have it for for-loop to be
> valid statement.
> now it's not really a big deal, but is there any other language
> construct that does not require
> temporary variable for this kind of loop ("repeat X times")?
>
> --
> viktoras
> www.neglostyti.com
>
> --
> http://groups.google.com/group/python_inside_maya

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to