Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
picnixz committed Jun 6, 2024
1 parent 6078d24 commit f795499
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Doc/library/symtable.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,16 @@ Examining Symbol Tables
in the class.

Note that the term 'method' here designates *any* function directly
declared via :keyword:`def` inside the class body. For instance:

>>> import symtable
>>> st = symtable.symtable("class A:\n"
... " def f(): pass\n"
... " def g(self): pass\n",
... "test", "exec")
>>> class_A = st.get_children()[0]
>>> class_A.get_methods()
('f', 'g')
declared via :keyword:`def` inside the class body. For instance::

>>> import symtable
>>> st = symtable.symtable("class A:\n"
... " def f(): pass\n"
... " def g(self): pass\n",
... "test", "exec")
>>> class_A = st.get_children()[0]
>>> class_A.get_methods()
('f', 'g')

.. class:: Symbol

Expand Down

0 comments on commit f795499

Please sign in to comment.