[Python-apps-team] Bug#687586: pylint error: AttributeError: 'Starred' object has no attribute 'ass_type'

Alastair Thompson hexforge at gmail.com
Fri Sep 14 00:16:55 UTC 2012


Package: pylint
Version: 0.25.2


when appraising code
x, *y, z = (1,2,3,4,5,6,7,8,9)
pylint errors

full trace back:
"""
No config file found, using default configuration
************* Module 666
C:  1,0: Invalid name "666" (should match
(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$)
C:  1,0: Missing docstring
C:  1,0: Comma not followed by a space
x, *y, z = (1,2,3,4,5,6,7,8,9)
             ^^
C:  1,0: Invalid name "x" (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
Traceback (most recent call last):
  File "/opt/bin/pylint", line 4, in <module>
    lint.Run(sys.argv[1:])
  File "/opt/lib/python3.2/site-packages/pylint/lint.py", line 902, in
__init__
    linter.check(args)
  File "/opt/lib/python3.2/site-packages/pylint/lint.py", line 514, in check
    self.check_astng_module(astng, walker, rawcheckers)
  File "/opt/lib/python3.2/site-packages/pylint/lint.py", line 587, in
check_astng_module
    walker.walk(astng)
  File "/opt/lib/python3.2/site-packages/pylint/utils.py", line 525, in walk
    self.walk(child)
  File "/opt/lib/python3.2/site-packages/pylint/utils.py", line 525, in walk
    self.walk(child)
  File "/opt/lib/python3.2/site-packages/pylint/utils.py", line 525, in walk
    self.walk(child)
  File "/opt/lib/python3.2/site-packages/pylint/utils.py", line 525, in walk
    self.walk(child)
  File "/opt/lib/python3.2/site-packages/pylint/utils.py", line 522, in walk
    cb(astng)
  File "/opt/lib/python3.2/site-packages/pylint/checkers/variables.py",
line 376, in visit_assname
    if isinstance(node.ass_type(), astng.AugAssign):
  File
"/opt/lib/python3.2/site-packages/logilab_astng-0.24.0-py3.2.egg/logilab/astng/mixins.py",
line 92, in ass_type
    return self.parent.ass_type()
AttributeError: 'Starred' object has no attribute 'ass_type'
"""

pyl3 --version
No config file found, using default configuration
pylint 0.25.2,
astng 0.24.0, common 0.58.2
Python 3.2.3 (default, Jun 28 2012, 13:26:58)
[GCC 4.5.1 20100924 (Red Hat 4.5.1-4)]

running under python3.2

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20120914/6fe52373/attachment.html>


More information about the Python-apps-team mailing list