mirror of
https://github.com/python/cpython
synced 2024-09-04 15:56:13 +00:00
bpo-23984: Improve descriptor documentation (GH-1034)
https://bugs.python.org/issue23984
This commit is contained in:
parent
4a1468e593
commit
abbdd1fc5c
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue