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 (GH-93661)
(cherry picked from commit 5d8e7a1)

Co-authored-by: Pamela Fox <pamela.fox@gmail.com>
  • Loading branch information
pamelafox authored and miss-islington committed Jun 11, 2022
commit bb1658e1ff5bcc46513c3baede0ccdce89e278b4
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