question of easyExcel (<>)
Hi, class easyExcel: def __init__(self, filename=None): self.xlApp = Dispatch('Excel.Application') if filename: self.filename = filename self.xlBook = self.xlApp.Workbooks.Open(filename) else: self.xlBook = self.xlApp.Workbooks.Add() self.filename =
[help] Is it true to call obj.__str__() while executing "print obj"?
at 0x1870dacc> >>> C.__str__ >>> print C This is class C }}} The question is why Printable.__str__ is invoked while executing "print C" but "C.__str__" shows it is resolved as "objct.__str__"? Wish I can get reply from you.