Skip to content

Commit 536af65

Browse files
Change list to view object (GH-93661)
(cherry picked from commit 5d8e7a1) Co-authored-by: Pamela Fox <pamela.fox@gmail.com>
1 parent 2e0e3ce commit 536af65

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Doc/library/symtable.rst

Lines changed: 2 additions & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy