TypeError: unsubscriptable object

k.retheesh at gmail.com k.retheesh at gmail.com
Fri Jun 9 14:38:51 EDT 2006


So wat should I do ??

K.S.Sreeram wrote:
> k.retheesh at gmail.com 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 statements to see what values they are.
>
> e.g:
>
> a = 2
> a[:10]
>
> will give me an 'unsubscriptable object'
>
> Regards
> Sreeram
>
>
> --------------enig08E562E3E8ED90BF5BC3C92B
> Content-Type: application/pgp-signature
> Content-Transfer-Encoding: base64
> Content-Disposition: inline;
> 	filename="signature.asc"
> Content-Description: OpenPGP digital signature
> X-Google-AttachSize: 253




More information about the Python-list mailing list