From 7e9bf48494e39da8a75caaa2deb5ae8bf5b5e40e Mon Sep 17 00:00:00 2001 From: Adam McKenna Date: Wed, 15 Jan 2020 13:20:09 -0800 Subject: [PATCH] Update setter.rst --- source/docs/property/setter.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/source/docs/property/setter.rst b/source/docs/property/setter.rst index 892d807..5d54ba6 100644 --- a/source/docs/property/setter.rst +++ b/source/docs/property/setter.rst @@ -8,7 +8,7 @@ Overrides attribute access mechanism. Syntax ==== -property.getter(method) +property.setter(method) method A method to decorate. @@ -50,6 +50,10 @@ The returned property also has the attributes fget, fset, and fdel corresponding Example ==== ->>> foo -3.6055512754639896 +>>> c = C() +>>> c.x == None +True +>>> c.x = 'bar' +>>> c.x +'bar'