listfuncs#

listfuncs(*args, private='__init__', include=None, exclude=None, strict=False)[source]#

Enumerate all functions in the supplied arguments; used in sc.profile().

If module(s) are supplied, recursively search them for functions and classes. If class(es) are supplied, search them for methods. Otherwise, search input(s) for functions.

Parameters:
  • args (list) – the arguments to parse for functions; can be modules, classes, or functions.

  • private (bool/str/list) – if True and a class is supplied, follow private functions; if a string/list, follow only those private functions (default '__init__')

  • include (str) – if a class/module is supplied, include only functions matching this string

  • exclude (str) – if a class/module is supplied, exclude functions matching this string

  • strict (bool) – if True, raise an exception if something is not a function, rather than recurse into it

New in version 3.2.2.
New in version 3.2.4: “strict” argument