def get_memories(self, lo=0, hi=999): mems = [] for i in range(lo, hi): try: mems.append(xml_ll.get_memory(self.doc, i)) except errors.InvalidMemoryLocation: pass return mems
def get_memory(self, number): mem = xml_ll.get_memory(self.doc, number) return mem