Change list to view object (#93661)

This commit is contained in:
Pamela Fox 2022-06-11 03:54:31 -07:00 committed by GitHub
parent bc3b31ea77
commit 5d8e7a1240
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View 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)

View 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()