@@ -196,18 +196,17 @@ def ispackage(object):
196196def ismethoddescriptor (object ):
197197 """Return true if the object is a method descriptor.
198198
199- But not if ismethod() or isclass() or isfunction() are true.
199+ But not if ismethod(), isclass() or isfunction() is true.
200200
201- This is new in Python 2.2, and, for example, is true of int.__add__.
202- An object passing this test has a __get__ attribute, but not a
203- __set__ attribute or a __delete__ attribute. Beyond that, the set
204- of attributes varies; __name__ is usually sensible, and __doc__
205- often is.
201+ An object passing this test (for example, int.__add__) has a __get__
202+ attribute, but not a __set__ attribute or a __delete__ attribute.
203+ Beyond that, the set of attributes varies; __name__ is usually
204+ sensible, and __doc__ often is.
206205
207206 Methods implemented via descriptors that also pass one of the other
208207 tests (ismethod(), isclass(), isfunction()) make this function return
209- false, simply because those other tests promise more -- you can, e.g.,
210- count on having the __func__ attribute when an object passes
208+ false, simply because those other tests promise more -- you can, for
209+ example, count on having the __func__ attribute when an object passes
211210 ismethod()."""
212211 if isclass (object ) or ismethod (object ) or isfunction (object ):
213212 # mutual exclusion
@@ -220,7 +219,7 @@ def ismethoddescriptor(object):
220219def isdatadescriptor (object ):
221220 """Return true if the object is a data descriptor.
222221
223- But not if ismethod() or isclass() or isfunction() are true.
222+ But not if ismethod(), isclass() or isfunction() is true.
224223
225224 Data descriptors have a __set__ or a __delete__ attribute. Examples are
226225 properties, getsets, and members. For the latter two (defined only in C
0 commit comments