Skip to content

Commit 5082674

Browse files
authored
[2.7] bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339) (GH-2340)
(cherry picked from commit b066edf)
1 parent 1ecfa45 commit 5082674

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/howto/descriptor.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ to wrap access to the value attribute in a property data descriptor::
258258

259259
class Cell(object):
260260
. . .
261-
def getvalue(self, obj):
262-
"Recalculate cell before returning value"
261+
def getvalue(self):
262+
"Recalculate the cell before returning value"
263263
self.recalc()
264-
return obj._value
264+
return self._value
265265
value = property(getvalue)
266266

267267

0 commit comments

Comments
 (0)