@@ -772,7 +772,7 @@ are always available. They are listed here in alphabetical order.
772772 still access all builtins.
773773
774774 The *closure * argument specifies a closure--a tuple of cellvars.
775- It's only valid when the * object * is a code object containing
775+ It's only valid when * source * is a code object containing
776776 :term: `free (closure) variables <closure variable> `.
777777 The length of the tuple must exactly match the length of the code object's
778778 :attr: `~codeobject.co_freevars ` attribute.
@@ -2166,10 +2166,10 @@ are always available. They are listed here in alphabetical order.
21662166
21672167 When called directly within an ordinary method of a class, both arguments may
21682168 be omitted ("zero-argument :func: `!super `"). In this case, *type * will be the
2169- enclosing class, and *obj * will be the first argument of the immediately
2170- enclosing function (typically ``self ``). (This means that zero -argument
2169+ enclosing class, and *object_or_type * will be the first argument of the
2170+ immediately enclosing function (typically ``self ``). Zero -argument
21712171 :func: `!super ` will not work as expected within nested functions, including
2172- generator expressions, which implicitly create nested functions.)
2172+ generator expressions, which implicitly create nested functions.
21732173
21742174 There are two typical use cases for *super *. In a class hierarchy with
21752175 single inheritance, *super * can be used to refer to parent classes without
@@ -2428,10 +2428,9 @@ are always available. They are listed here in alphabetical order.
24282428 determine the package context of the :keyword: `import ` statement.
24292429
24302430 *level * specifies whether to use absolute or relative imports. ``0 `` (the
2431- default) means only perform absolute imports. Positive values for
2432- *level * indicate the number of parent directories to search relative to the
2433- directory of the module calling :func: `__import__ ` (see :pep: `328 ` for the
2434- details).
2431+ default) means only perform absolute imports. For relative imports,
2432+ ``1 `` refers to the current package, ``2 `` to its parent package, and so on
2433+ (see :pep: `328 ` for details).
24352434
24362435 When the *name * variable is of the form ``package.module ``, normally, the
24372436 top-level package (the name up till the first dot) is returned, *not * the
0 commit comments