]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Typo and grammar fixes.
authorGeorg Brandl <georg@python.org>
Tue, 13 Mar 2007 07:23:16 +0000 (07:23 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 13 Mar 2007 07:23:16 +0000 (07:23 +0000)
Objects/object.c
Python/bltinmodule.c

index e304d2fb11172971a2011e3cafcaf0b865e05265..1b37a8dad3d27ea9dd145c0735e7a9612cbc4ce3 100644 (file)
@@ -1790,9 +1790,9 @@ error:
 static PyObject *
 _dir_object(PyObject *obj)
 {
-       PyObject * result = NULL;
-       PyObject * dirfunc = PyObject_GetAttrString((PyObject*)obj->ob_type,
-                                                   "__dir__");
+       PyObject *result = NULL;
+       PyObject *dirfunc = PyObject_GetAttrString((PyObject *)obj->ob_type,
+                                                  "__dir__");
 
        assert(obj);
        if (dirfunc == NULL) {
index eef68e4cbc91aff6c5d195fcfe1e05594a1547d5..082f64c344747290a030cffeca774fbc96499e98 100644 (file)
@@ -503,7 +503,7 @@ PyDoc_STRVAR(dir_doc,
 "  for a module object: the module's attributes.\n"
 "  for a class object:  its attributes, and recursively the attributes\n"
 "    of its bases.\n"
-"  for an other object: its attributes, its class's attributes, and\n"
+"  for any other object: its attributes, its class's attributes, and\n"
 "    recursively the attributes of its class's base classes.");
 
 static PyObject *