def player_listing(table):
    """ Returns the list of seats with players and stacks, for the hand history. """
    _str = ''
    for i, s in enumerate(table.seats):
        if s.player is None:
            _str += 'Seat #{}:\n'.format(i)
        else:
            _str += 'Seat #{}: {}(${})\n'.format(i, str(s.player), s.stack)
    return _str