Re: TypeError: unsubscriptable object

2006-06-09 Thread k . retheesh
I did the same, The function type is < NoneType> and the description type is so how can i print a part of this 2 output. These values are returned by database. Thanks Retheesh Laszlo Nagy wrote: > [EMAIL PROTECTED] írta: > > So wat should I do ?? > > > You should do this: > > print type(Functi

Re: TypeError: unsubscriptable object

2006-06-09 Thread k . retheesh
I did the same, The function type is < NoneType> and the description type is so how can i print a part of this 2 output. These values are returned by database. Thanks Retheesh Laszlo Nagy wrote: > [EMAIL PROTECTED] írta: > > So wat should I do ?? > > > You should do this: > > print type(Functi

Re: TypeError: unsubscriptable object

2006-06-09 Thread k . retheesh
So wat should I do ?? K.S.Sreeram wrote: > [EMAIL PROTECTED] wrote: > > print template % (ID, IID, Function[:10], Description[:10], > > ErrorNumber, StatusCD) > > TypeError: unsubscriptable object > > It means either 'Function' or 'Description' is not a sequence. > Try inserting print statemen

Re: TypeError: unsubscriptable object

2006-06-09 Thread k . retheesh
So wat should I do ?? K.S.Sreeram wrote: > [EMAIL PROTECTED] wrote: > > print template % (ID, IID, Function[:10], Description[:10], > > ErrorNumber, StatusCD) > > TypeError: unsubscriptable object > > It means either 'Function' or 'Description' is not a sequence. > Try inserting print statemen

Re: TypeError: unsubscriptable object

2006-06-09 Thread k . retheesh
So wat should I do ?? K.S.Sreeram wrote: > [EMAIL PROTECTED] wrote: > > print template % (ID, IID, Function[:10], Description[:10], > > ErrorNumber, StatusCD) > > TypeError: unsubscriptable object > > It means either 'Function' or 'Description' is not a sequence. > Try inserting print statemen

TypeError: unsubscriptable object

2006-06-09 Thread k . retheesh
Can anybody tell me why am I getting this error message while trying to print a part of a string. Is there a better approach for this... Traceback (most recent call last): File "C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 310, in RunScript exec codeObject in

Re: ValueError: too many values to unpack

2006-06-08 Thread k . retheesh
Thank you, that solved my problem. Thanks Retheesh alisonken1 wrote: > [EMAIL PROTECTED] wrote: > > > 56 records were different > > Type, FileType, > >Item, > > Hash, > > > > Path, Size, CullCd, Ext, DtCr,

ValueError: too many values to unpack

2006-06-08 Thread k . retheesh
Hi, I am very new to pyton, during my adventures journey I got the following error message which am not able to solve, can somebody help me. I was trying to format my output in a readable way, Compare results in tblItem _