commit | b066edfb1b268e90ea11f45dd1827f46d7ceec88 | [log] [tgz] |
---|---|---|
author | _ = NaN <anqurvanillapy@gmail.com> | Fri Jun 23 11:54:35 2017 +0800 |
committer | Mariatta <Mariatta@users.noreply.github.com> | Thu Jun 22 20:54:35 2017 -0700 |
tree | 6837b8cc2b8dcc56c4005829afdbaeba6252a2af | |
parent | ea007984d3eb4f80f3b632730fa34ae01c4ef188 [diff] [blame] |
bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339)
diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 2dd6c34..b349375 100644 --- a/Doc/howto/descriptor.rst +++ b/Doc/howto/descriptor.rst
@@ -252,10 +252,10 @@ class Cell(object): . . . - def getvalue(self, obj): - "Recalculate cell before returning value" + def getvalue(self): + "Recalculate the cell before returning value" self.recalc() - return obj._value + return self._value value = property(getvalue)