diff options
author | Stanley <46876382+slateny@users.noreply.github.com> | 2022-10-07 19:04:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 19:04:14 (GMT) |
commit | fde74be61bfdc79afad5dfb9496688370368c179 (patch) | |
tree | 9c1d77c26df482d257245954eb3cb91a73b9c9b8 | |
parent | 2a168355f0b700d4a64ccb5de750eb9d485e1cc3 (diff) | |
download | cpython-fde74be61bfdc79afad5dfb9496688370368c179.zip cpython-fde74be61bfdc79afad5dfb9496688370368c179.tar.gz cpython-fde74be61bfdc79afad5dfb9496688370368c179.tar.bz2 |
gh-73196: Add namespace/scope clarification for inheritance section (#92840)
Add namespace/scope clarification for inheritance section
-rw-r--r-- | Doc/tutorial/classes.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst index f27abe4..9ecbf8b 100644 --- a/Doc/tutorial/classes.rst +++ b/Doc/tutorial/classes.rst @@ -581,7 +581,8 @@ this:: . <statement-N> -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:: |