From: Stanley <46876382+slateny@users.noreply.github.com> Date: Fri, 7 Oct 2022 19:04:14 +0000 (-0700) Subject: gh-73196: Add namespace/scope clarification for inheritance section (#92840) X-Git-Tag: v3.12.0a1~178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fde74be61bfdc79afad5dfb9496688370368c179;p=thirdparty%2FPython%2Fcpython.git gh-73196: Add namespace/scope clarification for inheritance section (#92840) Add namespace/scope clarification for inheritance section --- diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index f27abe48b2d4..9ecbf8b87efb 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -581,7 +581,8 @@ this:: . -The name :class:`BaseClassName` must be defined in a scope containing the +The name :class:`BaseClassName` must be defined in a +namespace accessible from the scope containing the derived class definition. In place of a base class name, other arbitrary expressions are also allowed. This can be useful, for example, when the base class is defined in another module::