@@ -732,7 +732,7 @@ are always available. They are listed here in alphabetical order.
732732 still access all builtins.
733733
734734 The *closure * argument specifies a closure--a tuple of cellvars.
735- It's only valid when the * object * is a code object containing
735+ It's only valid when * source * is a code object containing
736736 :term: `free (closure) variables <closure variable> `.
737737 The length of the tuple must exactly match the length of the code object's
738738 :attr: `~codeobject.co_freevars ` attribute.
@@ -1788,8 +1788,6 @@ are always available. They are listed here in alphabetical order.
17881788 including the name and address of the object. A class can control what this
17891789 function returns for its instances
17901790 by defining a :meth: `~object.__repr__ ` method.
1791- If :func: `sys.displayhook ` is not accessible, this function will raise
1792- :exc: `RuntimeError `.
17931791
17941792 This class has a custom representation that can be evaluated::
17951793
@@ -2103,10 +2101,10 @@ are always available. They are listed here in alphabetical order.
21032101
21042102 When called directly within an ordinary method of a class, both arguments may
21052103 be omitted ("zero-argument :func: `!super `"). In this case, *type * will be the
2106- enclosing class, and *obj * will be the first argument of the immediately
2107- enclosing function (typically ``self ``). (This means that zero -argument
2104+ enclosing class, and *object_or_type * will be the first argument of the
2105+ immediately enclosing function (typically ``self ``). Zero -argument
21082106 :func: `!super ` will not work as expected within nested functions, including
2109- generator expressions, which implicitly create nested functions.)
2107+ generator expressions, which implicitly create nested functions.
21102108
21112109 There are two typical use cases for *super *. In a class hierarchy with
21122110 single inheritance, *super * can be used to refer to parent classes without
@@ -2365,10 +2363,9 @@ are always available. They are listed here in alphabetical order.
23652363 determine the package context of the :keyword: `import ` statement.
23662364
23672365 *level * specifies whether to use absolute or relative imports. ``0 `` (the
2368- default) means only perform absolute imports. Positive values for
2369- *level * indicate the number of parent directories to search relative to the
2370- directory of the module calling :func: `__import__ ` (see :pep: `328 ` for the
2371- details).
2366+ default) means only perform absolute imports. For relative imports,
2367+ ``1 `` refers to the current package, ``2 `` to its parent package, and so on
2368+ (see :pep: `328 ` for details).
23722369
23732370 When the *name * variable is of the form ``package.module ``, normally, the
23742371 top-level package (the name up till the first dot) is returned, *not * the
0 commit comments