]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change list to view object (GH-93661)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 11 Jun 2022 11:13:38 +0000 (04:13 -0700)
committerGitHub <noreply@github.com>
Sat, 11 Jun 2022 11:13:38 +0000 (04:13 -0700)
(cherry picked from commit 5d8e7a124098add18a17b12270a66ca26b8cc058)

Co-authored-by: Pamela Fox <pamela.fox@gmail.com>
Doc/library/symtable.rst
Lib/symtable.py

index e364232247c2004fda1b5534c9658c5e985e1e96..362220dc71a26fa1dc87c7aafc7dfaad3e6cb05d 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 98db1e2557d37f26e0f0d49bfbe68524f0fc0d7a..e11e5fffc4e1be49defe1c54803d65e398ba56bb 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()