manage_attrs
File Purpose: tools for easily managing attributes
Functions
|
returns decorator which attaches attrs to object, then returns object. |
|
return decorator which restores attrs of obj after running function. |
|
returns context manager which restores attrs of self to their original values, upon exit. |
|
usually, setattr(obj, attr, value). |
|
return decorator which sets attrs of object before running function then restores them after. |
|
returns context manager which sets attrs of obj upon entry; restores original values upon exit. |
Classes
|
context manager which calls f with *args and **kw upon entry, and does nothing upon exit. |
|
an incrementable attribute, and methods to manage other attributes when it is incremented or decremented. |
|
context manager which restores attrs of obj to their original values, upon exit. |
|
context manager which sets attrs of obj upon entry; restores original values upon exit. |
|
context manager which (enter) sets attrs of obj; (exit) restores original values; (both) sends signals (e.g. to obj). |