mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Typo and grammar fixes.
This commit is contained in:
parent
75c7c80ee5
commit
3bb156722e
2 changed files with 4 additions and 4 deletions
|
@ -1790,8 +1790,8 @@ error:
|
||||||
static PyObject *
|
static PyObject *
|
||||||
_dir_object(PyObject *obj)
|
_dir_object(PyObject *obj)
|
||||||
{
|
{
|
||||||
PyObject * result = NULL;
|
PyObject *result = NULL;
|
||||||
PyObject * dirfunc = PyObject_GetAttrString((PyObject*)obj->ob_type,
|
PyObject *dirfunc = PyObject_GetAttrString((PyObject *)obj->ob_type,
|
||||||
"__dir__");
|
"__dir__");
|
||||||
|
|
||||||
assert(obj);
|
assert(obj);
|
||||||
|
|
|
@ -503,7 +503,7 @@ PyDoc_STRVAR(dir_doc,
|
||||||
" for a module object: the module's attributes.\n"
|
" for a module object: the module's attributes.\n"
|
||||||
" for a class object: its attributes, and recursively the attributes\n"
|
" for a class object: its attributes, and recursively the attributes\n"
|
||||||
" of its bases.\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.");
|
" recursively the attributes of its class's base classes.");
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue