mirror of https://github.com/python/cpython
Change list to view object (GH-93661)
(cherry picked from commit 5d8e7a1240
)
Co-authored-by: Pamela Fox <pamela.fox@gmail.com>
This commit is contained in:
parent
2e0e3ce0a1
commit
536af65e96
|
@ -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)
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue