Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Change list to view object
  • Loading branch information
pamelafox committed Jun 9, 2022
commit a525e48f2a70ff151c0ff3f5c4b5f7afaf464201
3 changes: 2 additions & 1 deletion Doc/library/symtable.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion Lib/symtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def has_children(self):
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()

Expand Down