[Python-checkins] gh-73196: Add namespace/scope clarification for inheritance section (#92840)
nanjekyejoannah
webhook-mailer at python.org
Fri Oct 7 15:04:23 EDT 2022
https://github.com/python/cpython/commit/fde74be61bfdc79afad5dfb9496688370368c179
commit: fde74be61bfdc79afad5dfb9496688370368c179
branch: main
author: Stanley <46876382+slateny at users.noreply.github.com>
committer: nanjekyejoannah <33177550+nanjekyejoannah at users.noreply.github.com>
date: 2022-10-07T12:04:14-07:00
summary:
gh-73196: Add namespace/scope clarification for inheritance section (#92840)
Add namespace/scope clarification for inheritance section
files:
M Doc/tutorial/classes.rst
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::
.
<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::
More information about the Python-checkins
mailing list