Menu

#1510 Rename not changing property setter and deleter decorators

open
nobody
5
2012-05-23
2012-05-23
sirjis
No

For a property with a setter or deleter defined using the decorator syntax (@x.setter), renaming the property using Refactoring->Rename does not change the decorator.

For example, starting from:

@property
def x(self):
return 0

@x.setter
def x(self, value):
pass

@x.deleter
def x(self):
pass

Renaming x to new_x:

@property
def new_x(self):
return 0

@x.setter
def new_x(self, value):
pass

@x.deleter
def new_x(self):
pass

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.