pytools
File Purpose: tools whose main purpose is to work with implementation details of Python.
E.g. manipulate function docstrings
Functions
|
returns a function which returns dict of all inputs all inputs to callable_. |
|
display sourcecode for obj, including syntax highlighting. |
|
return s.format(**kw) but ignoring any missing keys. |
|
return s.format(**kw) but replace any missing keys with replacement. |
|
returns whether error is an instance of err_type or was raised |
|
return str for help(f). |
|
return string s, prepending all lines except line 0 with indent |
|
return dict but with indent_doclines called on all the values. |
|
returns dict of all inputs to callable_ based on its signature and args & kwargs. |
|
returns whether obj is iterable. |
|
return s (a format string) with all missing keys padded with extra {}. |
|
print help_str(f, **kw_help_str). |
|
prints source code for object (e.g. call this on a function or class). |
|
return s (a format string) with all missing keys replaced by replacement. |
|
returns the single provided value from aliases. |