You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nuitka/Errors.py:37 E1133 not-an-iterable NuitkaNodeError.str
Non-iterable value self.args is used in an iterating context
This is self.args from Exception, as can be seen in the code here:
class NuitkaErrorBase(Exception):
pass
class NuitkaNodeError(NuitkaErrorBase):
# Try to output more information about nodes passed.
def __str__(self):
from nuitka.codegen.Indentation import indented
parts = [""]
for arg in self.args:
if hasattr(arg, "asXmlText"):
parts.append(indented("\n%s\n" % arg.asXmlText()))
else:
parts.append(arg)
parts.append("")
parts.append("The above information should be included in a
bug report.")
I am assuming that the other code in apart from iteration of "self.args" in str is not relevant, but I did not try.
Current behavior
Warning is given:
nuitka/Errors.py:37 E1133 not-an-iterable NuitkaNodeError.str
Non-iterable value self.args is used in an iterating context
Expected behavior
The 2.0.0 version of Astroid doesn't give such warnings, the update to 2.0.1 does.
Steps to reproduce
nuitka/Errors.py:37 E1133 not-an-iterable NuitkaNodeError.str
Non-iterable value self.args is used in an iterating context
This is self.args from Exception, as can be seen in the code here:
I am assuming that the other code in apart from iteration of "self.args" in str is not relevant, but I did not try.
Current behavior
Warning is given:
nuitka/Errors.py:37 E1133 not-an-iterable NuitkaNodeError.str
Non-iterable value self.args is used in an iterating context
Expected behavior
The 2.0.0 version of Astroid doesn't give such warnings, the update to 2.0.1 does.
pylint --version output
python3.6 -m pylint --version
main.py 2.0.0
astroid 2.0.1
Python 3.6.3 (default, Mar 27 2018, 00:29:24)
[GCC 6.3.0 20170516]
Note: Didn't happen with 2.0.0.dev4
The text was updated successfully, but these errors were encountered: