oop_misc

File Purpose: Miscellaneous quality-of-life functions for Object Oriented Programming tasks.

Functions

apply(x, fstr, *args, **kwargs)

return x.fstr(*args, **kwargs), or x if x doesn't have an 'fstr' attribute.

Classes

MetaClsRepr

metaclass which affects repr for classes.