Can anyone show me the python forloop style for this kind of C forloop
for (end_timeout=1, i=0; i<TIME_OUT; i++)
{
bit = Inp32(status_register) & (1 << PtrClk);
if ( ( bit >> PtrClk ) == 1 )
{
end_timeout = 0;
break;
}
}
Thanks.
This will start the loop with
i == 0. Usexrange(n, TIME_OUT)if you want to start withi == n.See the documentation for
xrange.