Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-93660: Change list to view object in SymbolTable docstring #93661

Merged
merged 1 commit into from
Jun 11, 2022
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
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