Refactor scoping: across class bounds?
Brought to you by:
fabioz
Refactoring (CTRL-2-R) a variable name in one class also refactors a variable with the same name in another class (if both classes are in the same module). In the example below renaming (using CTRL-2-R) self.varx in class B also changes self.varx in class A.
===CODE=============
class A(object):
def __init__():
self.varx = 0
class B(object):
def __init__():
self.varx = 0
====================