Re: folks, what's wrong with this?

2010-04-05 Thread Ani Sinha
> And now for the most import point: __getattr__ is only called as a > *last* resort. That is, after the attribute lookup mechanism will have > tried *and failed* to find the name in the instance's __dict__. Thanks you all for all the suggestions and thoughts. So in other words, this piece of cod

Re: folks, what's wrong with this?

2010-04-01 Thread Ani
On Apr 1, 12:10 pm, Robert Kern wrote: > On 2010-04-01 13:56 PM, Ani wrote: > > > > > Hi All: > > > I am just a beginner in python. Can anyone please tell me what is > > wrong with this piece of code? > > > import copy > > class BaseD

folks, what's wrong with this?

2010-04-01 Thread Ani
Hi All: I am just a beginner in python. Can anyone please tell me what is wrong with this piece of code? import copy class BaseDummyObject(object): def __init__(self): pass def __getattr__(self, item): try: return self.__dict__.__getitem__(item) excep

removing row from table. PyQT

2009-05-06 Thread Ani
I'm trying to remove the selected rows from the table, but it's not working, i've tried many ways, don't know what I'm missing. code below: class MonitorUi(QWidget): def __init__(self,parent = None): QWidget.__init__(self,parent) self._initalTable = [["none","none","none"],

Mail System Error - Returned Mail

2005-05-20 Thread ani
*** WARNING ** This message has been scanned by MDaemon AntiVirus and was found to contain infected attachment(s). Please review the list below. AttachmentVirus name Action taken --