lib.meta module

Functions/classes which make use of Python’s dynamic nature to inspect a program’s internals.

exception BugyiDepreciationWarning[source]

Bases: Warning

DepreciationWarning that doesn’t get ignored by default.

class Inspector(*, up=0)[source]

Bases: object

Helper class for python introspection (e.g. What line number is this?)

Parameters

up (int) –

cname(obj)[source]

Helper function for getting an object’s class name as a string.

Parameters

obj (object) –

Return type

str

deprecated(func, wmsg)[source]

Used to deprecate @func after renaming it or moving it to a different module/package.

Parameters
  • func (Callable) –

  • wmsg (str) –

Return type

Callable

scriptname(*, up=0)[source]

Returns the name of the current script / module.

Parameters

up (int) – How far should we crawl up the stack?

Return type

str