]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change list to view object (#93661)
authorPamela Fox <pamela.fox@gmail.com>
Sat, 11 Jun 2022 10:54:31 +0000 (03:54 -0700)
committerGitHub <noreply@github.com>
Sat, 11 Jun 2022 10:54:31 +0000 (11:54 +0100)
Doc/library/symtable.rst
Lib/symtable.py

index 0264f891cc8c066ab12bf72349528f6ee9e40479..65ff5bfe7abd61867e699e764fefc620cfbaa985 100644 (file)
@@ -69,7 +69,8 @@ Examining Symbol Tables
 
    .. method:: get_identifiers()
 
-      Return a list of names of symbols in this table.
+      Return a view object containing the names of symbols in the table.
+      See the :ref:`documentation of view objects <dict-views>`.
 
    .. method:: lookup(name)
 
index 75ff0921f4c0db7e2e12af19b0611fc6504c3b20..5dd71ffc6b4f195eb938549f6debc21c3f047d57 100644 (file)
@@ -111,7 +111,7 @@ class SymbolTable:
         return bool(self._table.children)
 
     def get_identifiers(self):
-        """Return a list of names of symbols in the table.
+        """Return a view object containing the names of symbols in the table.
         """
         return self._table.symbols.keys()