divmod-dev team mailing list archive
-
divmod-dev team
-
Mailing list archive
-
Message #00217
[Bug 812958] Re: property decorator -> redefinition of function
There's a patch in a pending pull request on the kevinw/pyflakes fork on
github that addresses this issue:
https://github.com/ervandew/pyflakes/commit/b971f2775500b4154619dc5d71ba77fc7e4efdf6
--
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for Pyflakes.
https://bugs.launchpad.net/bugs/812958
Title:
property decorator -> redefinition of function
Status in Pyflakes:
Confirmed
Bug description:
Code from: http://docs.python.org/library/functions.html#property
-------------------------------------- foo.py
class C(object):
def __init__(self):
self._x = None
@property
def x(self):
"""I'm the 'x' property."""
return self._x
@x.setter
def x(self, value):
self._x = value
@x.deleter
def x(self):
del self._x
---------------------------------------------
pyflakes output is
$ pyflakes foo.py
foo.py:11: redefinition of function 'x' from line 6
foo.py:15: redefinition of function 'x' from line 11
To manage notifications about this bug go to:
https://bugs.launchpad.net/pyflakes/+bug/812958/+subscriptions
References