@@ -176,17 +176,16 @@ attributes:
176176
177177.. function :: getmoduleinfo(path)
178178
179- Returns a :term: `named tuple ` ``ModuleInfo(name, suffix, mode,
180- module_type) `` of values that describe how Python will interpret the file
181- identified by *path * if it is a module, or ``None `` if it would not be
182- identified as a module. The return tuple is ``(name, suffix, mode, mtype) ``,
183- where *name * is the name of the module without the name of any enclosing
184- package, *suffix * is the trailing part of the file name (which may not be a
185- dot-delimited extension), *mode * is the :func: `open ` mode that would be used
186- (``'r' `` or ``'rb' ``), and *mtype * is an integer giving the type of the
187- module. *mtype * will have a value which can be compared to the constants
188- defined in the :mod: `imp ` module; see the documentation for that module for
189- more information on module types.
179+ Returns a :term: `named tuple ` ``ModuleInfo(name, suffix, mode, module_type) ``
180+ of values that describe how Python will interpret the file identified by
181+ *path * if it is a module, or ``None `` if it would not be identified as a
182+ module. In that tuple, *name * is the name of the module without the name of
183+ any enclosing package, *suffix * is the trailing part of the file name (which
184+ may not be a dot-delimited extension), *mode * is the :func: `open ` mode that
185+ would be used (``'r' `` or ``'rb' ``), and *module_type * is an integer giving
186+ the type of the module. *module_type * will have a value which can be
187+ compared to the constants defined in the :mod: `imp ` module; see the
188+ documentation for that module for more information on module types.
190189
191190
192191.. function :: getmodulename(path)
@@ -391,12 +390,12 @@ Classes and functions
391390.. function :: getargspec(func)
392391
393392 Get the names and default values of a Python function's arguments. A
394- :term: `named tuple ` ``ArgSpec(args, varargs, keywords,
395- defaults) `` is returned. *args * is a list of
396- the argument names. * varargs * and * varkw * are the names of the `` * `` and
397- `` ** `` arguments or `` None ``. * defaults * is a tuple of default argument
398- values or None if there are no default arguments; if this tuple has *n *
399- elements, they correspond to the last * n * elements listed in *args *.
393+ :term: `named tuple ` ``ArgSpec(args, varargs, keywords, defaults) `` is
394+ returned. *args * is a list of the argument names. * varargs * and * keywords *
395+ are the names of the `` * `` and `` ** `` arguments or `` None ``. * defaults * is a
396+ tuple of default argument values or None if there are no default arguments;
397+ if this tuple has * n * elements, they correspond to the last *n * elements
398+ listed in *args *.
400399
401400 .. deprecated :: 3.0
402401 Use :func: `getfullargspec ` instead, which provides information about
@@ -425,8 +424,8 @@ Classes and functions
425424
426425 Get information about arguments passed into a particular frame. A
427426 :term: `named tuple ` ``ArgInfo(args, varargs, keywords, locals) `` is
428- returned. *args * is a list of the argument names. *varargs * and *varkw * are
429- the names of the ``* `` and ``** `` arguments or ``None ``. *locals * is the
427+ returned. *args * is a list of the argument names. *varargs * and *keywords *
428+ are the names of the ``* `` and ``** `` arguments or ``None ``. *locals * is the
430429 locals dictionary of the given frame.
431430
432431
0 commit comments