Skip to content

Commit

Permalink
bpo-23984: Improve descriptor documentation (GH-1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
shubh3794 authored and miss-islington committed Mar 20, 2019
1 parent 4a1468e commit abbdd1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/howto/descriptor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abbdd1f

Please sign in to comment.