[Python-checkins] bpo-23984: Improve descriptor documentation (GH-1034)
Miss Islington (bot)
webhook-mailer at python.org
Tue Mar 19 22:56:09 EDT 2019
https://github.com/python/cpython/commit/abbdd1fc5c2017683da8d2ed3e8843e8c159bc8c
commit: abbdd1fc5c2017683da8d2ed3e8843e8c159bc8c
branch: master
author: Shubham Aggarwal <shubham.aggarwal at zomato.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019-03-19T19:55:55-07:00
summary:
bpo-23984: Improve descriptor documentation (GH-1034)
https://bugs.python.org/issue23984
files:
M Doc/howto/descriptor.rst
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
More information about the Python-checkins
mailing list