mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
a few improvements
This commit is contained in:
parent
e0d4c7b5bd
commit
e3444c8b59
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ Examining Symbol Tables
|
||||||
|
|
||||||
Return the table's name. This is the name of the class if the table is
|
Return the table's name. This is the name of the class if the table is
|
||||||
for a class, the name of the function if the table is for a function, or
|
for a class, the name of the function if the table is for a function, or
|
||||||
``'top'`` if the table is global (type ``'module'``).
|
``'top'`` if the table is global (:meth:`get_type` returns ``'module'``).
|
||||||
|
|
||||||
.. method:: get_lineno()
|
.. method:: get_lineno()
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ Examining Symbol Tables
|
||||||
|
|
||||||
.. method:: is_nested()
|
.. method:: is_nested()
|
||||||
|
|
||||||
Return ``True`` if the block is nested in another.
|
Return ``True`` if the block is a nested class or function.
|
||||||
|
|
||||||
.. method:: has_children()
|
.. method:: has_children()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue