[Python-projects] Bug in pylint, in typecheck.py, name 'set' is not defined.

Olle Raab olle at mitrionics.com
Mon Jan 8 17:44:15 CET 2007


Hello.

I found a bug in pylint:

Traceback (most recent call last):
   File "../../../pylint-0.12.2/lint.py", line 894, in ?
     Run(sys.argv[1:])
   File "../../../pylint-0.12.2/lint.py", line 847, in __init__
     linter.check(args)
   File "../../../pylint-0.12.2/lint.py", line 481, in check
     self.check_file(filepath, modname, checkers)
   File "../../../pylint-0.12.2/lint.py", line 495, in check_file
     astng = self._check_file(filepath, modname, checkers)
   File "../../../pylint-0.12.2/lint.py", line 519, in _check_file
     self.check_astng_module(astng, checkers)
   File "../../../pylint-0.12.2/lint.py", line 577, in  
check_astng_module
     self.astng_events(astng, [checker for checker in checkers
   File "../../../pylint-0.12.2/lint.py", line 594, in astng_events
     self.astng_events(child, checkers, _reversed_checkers)
   File "../../../pylint-0.12.2/lint.py", line 594, in astng_events
     self.astng_events(child, checkers, _reversed_checkers)
   File "../../../pylint-0.12.2/lint.py", line 594, in astng_events
     self.astng_events(child, checkers, _reversed_checkers)
   File "../../../pylint-0.12.2/lint.py", line 594, in astng_events
     self.astng_events(child, checkers, _reversed_checkers)
   File "../../../pylint-0.12.2/lint.py", line 591, in astng_events
     checker.visit(astng)
   File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/site-packages/logilab/astng/utils.py", line 85, in visit
     method(node)
   File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
python2.3/site-packages/pylint/checkers/typecheck.py", line 92, in  
visit_getattr
     missingattr = set()
NameError: global name 'set' is not defined



Also, I cannot regster myself on the mailing list:

http://www.logilab.org/mailinglists/python_projects/ 
mailinglist_register_form

Regards Olle

-----------------------------------------------------------
Olle Raab
Senior Software Developer
Mitrionics AB

olle.raab at mitrionics.com





More information about the Python-Projects mailing list