Browse Source

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

https://bugs.python.org/issue23984
pull/12465/head
Shubham Aggarwal 7 years ago
committed by Miss Islington (bot)
parent
commit
abbdd1fc5c
  1. 4
      Doc/howto/descriptor.rst

4
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

Loading…
Cancel
Save