class LoopContext(object):
A magic loop variable. Automatically accessible in any % for block.
See the section :ref:`loop_context` for usage notes.
parent
-> .LoopContext
or Noneindex
-> int
reverse_index
-> int
first
-> bool
last
-> bool
even
-> bool
odd
-> bool
Method | cycle |
Cycle through values as the loop progresses. |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __len__ |
Undocumented |
Instance Variable | _iterable |
Undocumented |
Instance Variable | index |
Undocumented |
Instance Variable | parent |
Undocumented |
Property | even |
Undocumented |
Property | first |
Undocumented |
Property | last |
Undocumented |
Property | odd |
Undocumented |
Property | reverse_index |
Undocumented |