diff options
author | Shubham Aggarwal <shubham.aggarwal@zomato.com> | 2019-03-20 08:25:55 +0530 |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-03-19 19:55:55 -0700 |
commit | abbdd1fc5c2017683da8d2ed3e8843e8c159bc8c (patch) | |
tree | 63ea1eedb4bde34d5ee180ead490db854e58c463 | |
parent | 4a1468e593c4b67d8c78b78070fff9e18ec5d790 (diff) | |
download | cpython-git-abbdd1fc5c2017683da8d2ed3e8843e8c159bc8c.tar.gz |
bpo-23984: Improve descriptor documentation (GH-1034)
https://bugs.python.org/issue23984
-rw-r--r-- | Doc/howto/descriptor.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/howto/descriptor.rst b/Doc/howto/descriptor.rst index 672324b172..b29e590b20 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 |