Python do not use len as condition value

Describes the cause and action for error messages.


Error Message(English):
do not use len as condition value

Resolution


関連リンク


Why is the use of len(SEQUENCE) in condition values considered ...
https://stackoverflow.com/questions/43121340/why-is-the-use-of-lensequence-in-condition-values-consi・・・

In condition values...
https://stackoverflow.com/questions/43121340/why-is-the-use-of-lensequence-in-condition-values-consi・・・

Add suggestion for `len-as-condition` message. ・ Issue #1405 ・ PyCQA ...
https://github.com/PyCQA/pylint/issues/1405

python 条件値のlen(SEQUENCE)の使用がPylintで間違っていると考え ...
https://code.i-harness.com/ja-jp/q/291fabc

Never use "for i in range(len(sequence)):" - Python Forum
https://python-forum.io/Thread-Basic-Never-use-for-i-in-range-len-sequence

Python Programming/Conditional Statements - Wikibooks, open books ...
https://en.wikibooks.org/wiki/Python_Programming/Conditional_Statements

9.12. Traversal and the while Loop ? How to ... - Interactive Python
http://interactivepython.org/runestone/static/CS152f17/Strings/TraversalandthewhileLoop.html

Some Tips, Tricks, and Common Errors ? How to Think Like a ...
http://openbookproject.net/thinkcs/python/english3e/app_e.html

4. Conditionals ? How to Think Like a Computer Scientist: Learning ...
http://www.openbookproject.net/thinkcs/python/english2e/ch04.html

Python bool() - Python Standard Library - Programiz
https://www.programiz.com/python-programming/methods/built-in/bool



Name:
Comment:



[return to Python エラーコード一覧]