From: Shubham Aggarwal Date: Wed, 20 Mar 2019 02:55:55 +0000 (+0530) Subject: bpo-23984: Improve descriptor documentation (GH-1034) X-Git-Tag: v3.8.0a3~45 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abbdd1fc5c2017683da8d2ed3e8843e8c159bc8c;p=thirdparty%2FPython%2Fcpython.git bpo-23984: Improve descriptor documentation (GH-1034) https://bugs.python.org/issue23984 --- diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 672324b17238..b29e590b20cb 100644 --- a/Doc/howto/descriptor.rst +++ b/Doc/howto/descriptor.rst @@ -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