On this page
pyclbr.Function
Prev: pyclbr.Class | Up: pyclbr | Next: pyclbr.readmodule
Rel: pyclbr.Class, pyclbr.readmodule, pyclbr.readmodule_ex
Ref: docs.python.org — pyclbr.Function
Tags: #public #python3 #stdlib #pyclbr
Import
import pyclbr
from pyclbr import Function
Signature & Overview
pyclbr.Function(module, name, file, lineno, parent=None, is_async=False, *, end_lineno=None)
Information about a Python function, including methods.
Usage
import pyclbr
tree = pyclbr.readmodule_ex("colorsys")
assert isinstance(tree["rgb_to_hsv"], pyclbr.Function)
Gotchas
- Exposes
.name,.file,.lineno,.end_lineno, and.children.
REPL Inspect
from pyclbr import Function
help(Function)
Linked from
Related notes
- tuts/python3/stdlib_module/pyclbr/Class Linked here; links to this page; shared tags: #pyclbr, #stdlib
- tuts/python3/stdlib_module/pyclbr/readmodule Linked here; links to this page; shared tags: #pyclbr, #stdlib
- tuts/python3/stdlib_module/pyclbr/readmodule_ex Linked here; links to this page; shared tags: #pyclbr, #stdlib
- tuts/python3/stdlib_module/pyclbr Linked here; links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib