blob: d0e4a3facf552171cdd4f93bbc9ee83c6a9b15d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
from pprint import pformat as pf
class Bunch(object):
"""Like a dictionary but using object notation"""
def __init__(self, **kw):
self.__dict__ = kw
def __repr__(self):
return pf(self.__dict__)
|