Skip to content

Commit 5d8e7a1

Browse files
authored
Change list to view object (#93661)
1 parent bc3b31e commit 5d8e7a1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Doc/library/symtable.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ Examining Symbol Tables
6969

7070
.. method:: get_identifiers()
7171

72-
Return a list of names of symbols in this table.
72+
Return a view object containing the names of symbols in the table.
73+
See the :ref:`documentation of view objects <dict-views>`.
7374

7475
.. method:: lookup(name)
7576

Lib/symtable.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def has_children(self):
111111
return bool(self._table.children)
112112

113113
def get_identifiers(self):
114-
"""Return a list of names of symbols in the table.
114+
"""Return a view object containing the names of symbols in the table.
115115
"""
116116
return self._table.symbols.keys()
117117

0 commit comments

Comments
 (0)