diff options
author | Shubham Aggarwal <shubham.aggarwal@zomato.com> | 2019-03-20 02:55:55 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-03-20 02:55:55 (GMT) |
commit | abbdd1fc5c2017683da8d2ed3e8843e8c159bc8c (patch) | |
tree | 63ea1eedb4bde34d5ee180ead490db854e58c463 /Doc/howto/descriptor.rst | |
parent | 4a1468e593c4b67d8c78b78070fff9e18ec5d790 (diff) | |
download | cpython-abbdd1fc5c2017683da8d2ed3e8843e8c159bc8c.zip cpython-abbdd1fc5c2017683da8d2ed3e8843e8c159bc8c.tar.gz cpython-abbdd1fc5c2017683da8d2ed3e8843e8c159bc8c.tar.bz2 |
bpo-23984: Improve descriptor documentation (GH-1034)
https://bugs.python.org/issue23984
Diffstat (limited to 'Doc/howto/descriptor.rst')
-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 672324b..b29e590 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 |