

def __repr__(self):
    shares = []
    for (key, value) in iteritems(self):
        shares.append(('%s=%s' % (key, value)))
    share_info = ', '.join(shares)
    return ('Portfolio(%s)' % share_info)

dataset/ETHPy150Open Emsu/prophet/prophet/portfolio.py Portfolio.__repr__/original