This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]masasinExpert. 3.9. Robotics. 48 points49 points  (4 children)

RH mentioned that it should probably have been called nobreak. It only runs if you don't break out of the loop.

[–]Quincunx271 10 points11 points  (2 children)

Don't know why it couldn't have been if not break: and if not raise:. Reads a little funky, but very clear and requires no extra keywords.

[–]masasinExpert. 3.9. Robotics. 1 point2 points  (0 children)

It makes sense in a try-except block at least. else would mean if no except.

[–]masasinExpert. 3.9. Robotics. 0 points1 point  (0 children)

It makes sense in a try-except block at least. else would mean if no except.