bpo-23984: Improve descriptor documentation (GH-1034)

https://bugs.python.org/issue23984
This commit is contained in:
Shubham Aggarwal 2019-03-20 08:25:55 +05:30 committed by Miss Islington (bot)
parent 4a1468e593
commit abbdd1fc5c

View file

@ -372,9 +372,9 @@ calls are unexciting::
... print(x) ... print(x)
... f = staticmethod(f) ... f = staticmethod(f)
... ...
>>> print(E.f(3)) >>> E.f(3)
3 3
>>> print(E().f(3)) >>> E().f(3)
3 3
Using the non-data descriptor protocol, a pure Python version of Using the non-data descriptor protocol, a pure Python version of