cleanup for resolve of class members; prefer resolving to definition of instance variable in containing method rather than in first method of class (PY-2740)

This commit is contained in:
Dmitry Jemerov
2011-01-20 20:23:45 +01:00
parent 93ac3f7dcc
commit ce70c75c69
20 changed files with 131 additions and 73 deletions
@@ -0,0 +1,15 @@
class Manager:
pass
class Programmer:
def jobsDoneCount(self):
pass
class EmployeeTest:
def firstMethod(self):
self.deadBeat = Manager()
def secondMethod(self):
self.deadBeat = Programmer()
self.deadBeat.jobsDoneCount()
# <ref>