@stephen All is fine now, thank you.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Posts made by mibradoc
-
RE: 'for loop' exit at first passage
@cvp I think the errors occurs in line 147, after the loop. This cannot prevent the loop from executing three times.
-
RE: 'for loop' exit at first passage
@stephen and your code runs without errors ! Have you made some change other than translate ?
-
RE: 'for loop' exit at first passage
The code on Dropbox stops after one loop. Whith a breakpoint on line 141 and then step by step you will see that the loop is executed only one time, not three as expected. The name error comes because the bypass over the lines 143 and 144 where the variable 'numero_carre_sans_chiffre' is assigned.
-
RE: 'for loop' exit at first passage
@cvp you're right, but the bug remains on my iPad
It's strange that the same code runs without error on your device.
Thanks a lot to you and to @stephen -
RE: 'for loop' exit at first passage
That 's correct, line 147 is still in the loop. But I 've commented lines 143 and 144 because the nameError and insert line 142 in order to debug. I don't need this print line in my script.
If you uncomment 143 and 144 and if the loop works fine, the name error would dissapear.
Wich version of Pythonista do you use? Mine is 3.3 -
RE: 'for loop' exit at first passage
Yes, I'am. And loop works fine diretly in shell, but fails in my script, checked with stop points
-
'for loop' exit at first passage
Hello,
I have this 'for loop' in my script, where box_altex == 8 :
...
for num_box in range ( (box_altex//33) , (box_altex//33)+3) :
print (num_box)
...
actual range : (6,9)
three print lines expected : 6,7,8
Only first occurs, then the code jumps to the first line after the for loop
How is it possible ?
Regards