]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-23984: Improve descriptor documentation (GH-1034) (GH-12459)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 Mar 2019 08:04:21 +0000 (01:04 -0700)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Fri, 22 Mar 2019 08:04:21 +0000 (01:04 -0700)
Doc/howto/descriptor.rst

index 51520b72032867ed2f3a69f8f508da2e4ca345b1..3d1da5ac1b7b8594fd97f2bfd49d787f1d18e639 100644 (file)
@@ -372,9 +372,9 @@ calls are unexciting::
     ...         print(x)
     ...     f = staticmethod(f)
     ...
-    >>> print(E.f(3))
+    >>> E.f(3)
     3
-    >>> print(E().f(3))
+    >>> E().f(3)
     3
 
 Using the non-data descriptor protocol, a pure Python version of