On this page
  1. pyclbr.Function
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from pyclbr import Function
help(Function)

Linked from

Related notes