LionHeart123 / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Bug: Code completion suggests class attributes inside methods #672

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Enter this example, up to typing the '.' on the last line

class foo:
   constant = ''
   def meth( self):
      constant.

What is the expected output? What do you see instead?
> PyScripter will offer code completion suggestions based on foo.constant.  
This is wrong.  Bare names inside methods will not resolve to attributes within 
the class scope.  Instead, it should be necessary to type foo.constant or 
self.constant to see that variable.

What version of the product are you using? On what operating system?
2.5.3.0 (x86) on Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by AgentFri...@gmail.com on 13 Jul 2012 at 7:26