PyDocs

Nav

Python Language Services

Class.get_methods

symtable

method of Class (source) Deprecated 3.14
  • Class.get_methods()
Deprecated since 3.14, removed in 3.16.
Return a tuple of methods declared in the class.
1 Example
>>> import symtable
>>> st = symtable.symtable('''
... def outer(): pass
...
... class A:
...    def f():
...        def w(): pass
...
...    def g(self): pass
...
...    @classmethod
...    async def h(cls): pass
...
...    global outer
...    def outer(self): pass
... ''', 'test', 'exec')
>>> class_A = st.get_children()[2]
>>> class_A.get_methods()
('f', 'g', 'h')
from the Python docs
See Also
No see-alsos for symtable/Class.get_methods
0 Notes
No notes for Class.get_methods