Skip to content

Commit 611d4d3

Browse files
committed
symtable fix 9
1 parent a1ebb69 commit 611d4d3

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

Doc/library/symtable.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Examining Symbol Tables
182182

183183
.. method:: get_cells()
184184

185-
Return a tuple containing the names of cell variables in this table.
185+
Return a tuple containing names of :term:`cell variables <closure variable>` in this table.
186186

187187

188188
.. class:: Class
@@ -295,6 +295,12 @@ Examining Symbol Tables
295295
Return ``True`` if the symbol is referenced in its block, but not assigned
296296
to.
297297

298+
.. method:: is_cell()
299+
300+
Return ``True`` if the symbol is a cell variable.
301+
302+
.. versionadded:: 3.15
303+
298304
.. method:: is_free_class()
299305

300306
Return *True* if a class-scoped symbol is free from
@@ -357,12 +363,6 @@ Examining Symbol Tables
357363
Return the namespace bound to this name. If more than one or no namespace
358364
is bound to this name, a :exc:`ValueError` is raised.
359365

360-
.. method:: is_cell()
361-
362-
Return ``True`` if the symbol is a cell variable.
363-
364-
.. versionadded:: 3.15
365-
366366

367367
.. _symtable-cli:
368368

Doc/whatsnew/3.15.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,14 @@ ssl
737737
(Contributed by Ron Frederick in :gh:`138252`.)
738738

739739

740+
symtable
741+
--------
742+
743+
* Add :meth:`symtable.SymbolTable.get_cells` and
744+
:meth:`symtable.Symbol.is_cell` methods.
745+
(Contributed by Yashp002 in :gh:`143504`.)
746+
747+
740748
sys
741749
---
742750

0 commit comments

Comments
 (0)