"""This is a trivial class that acts like a container."""
__docformat__ = "restructuredtext"
from repr import Repr
class ContainerClass:
"""This is a trivial class that acts like a container."""
def __init__(self, **kargs):
"""Shove all of the keyword arguments into ``self``."""
self.__dict__.update(kargs)
def __repr__(self):
return Repr().repr(self)
def update(self, dict):
"""Mimics a dicts update method."""
self.__dict__.update(dict)
|