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)
|
... 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user