The following forum message was posted by at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4556254:
Hello,
There's an open unassigned bug regarding variable renaming:
https://sourceforge.net/tracker/index.php?func=detail&aid=3028882&group_id=85796
&atid=577329
The scenario is as follows:
[code]@decorate(name="name")
def func():
name = "name"
print(name)[/code]
Renaming the 'name' variable inside func() to 'name2' would result in the
following code:
[code]@decorate([b]name2[/b]=[b]"name2"[/b])
def func():
name2 = [b]"name2"[/b]
print(name2)[/code]
The code marked in bold should not have been changed during the rename.
This is a useful feature, I hope someone could take ownership of this.
Thanks,
Amnon
|