[issue11418] Method's global scope is module containing function definition, not class.
Terry J. Reedy <tjreedy@udel.edu> added the comment: This paragraph follows a discussion and example of the fact that methods do *not* have to be defined within a class statement. Any objections to changing "The global scope associated with a method is the module containing the class definition. (The class itself is never used as a global scope.)" to "The global scope associated with a method is the module containing its definition. (A class is never used as a global scope.)" ? ---------- versions: -Python 3.1 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11418> _______________________________________
INADA Naoki <songofacandy@gmail.com> added the comment:
Any objections to changing
"The global scope associated with a method is the module containing the class definition. (The class itself is never used as a global scope.)"
to
"The global scope associated with a method is the module containing its definition. (A class is never used as a global scope.)"
?
+1 ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11418> _______________________________________
participants (2)
-
INADA Naoki
-
Terry J. Reedy