%r not properly in loop


Used when the break or continue keywords are used outside of a loop.

This message belongs to the basic checker.


Python docs: The break Statement allows break only within loops (and not within function or class definitions within a loop). Similarly for the continue statement.

Python 2.6(?) and above raises a SyntaxError for this situation when importing the module. PyLint reports this error using this message, without depending on the import actually happening.

Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License