I added a __repr__ method at the end of the gedcom library like so:

def __repr__(self):
        """ Format this element as its original string """
        result = repr(self.level())
        if self.pointer() != "":
            result += ' ' + self.pointer()
        result += ' ' + self.tag()
        if self.value() != "":
            result += ' ' + self.value()
        return result

and now I can print myList properly.

Eric and Michael also mentioned repr above, but I guess I needed someone to 
spell it out for me. Thanks for taking the time to put it in terms an old dog 
could understand.


-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to