]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-23984: Improve descriptor documentation (GH-1034)
authorShubham Aggarwal <shubham.aggarwal@zomato.com>
Wed, 20 Mar 2019 02:55:55 +0000 (08:25 +0530)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 20 Mar 2019 02:55:55 +0000 (19:55 -0700)
https://bugs.python.org/issue23984

Doc/howto/descriptor.rst

index 672324b17238818fbeddd4a67bfe3043d3353ed2..b29e590b20cba8c788b7173995f84ffbe096d740 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