TypeError: unsubscriptable object

k.retheesh at gmail.com k.retheesh at gmail.com
Fri Jun 9 13:38:46 EDT 2006


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 __main__.__dict__
  File "Q:\PythonScripts\InventoryCompareCase.py", line 276, in ?
    main()
  File "Q:\PythonScripts\InventoryCompareCase.py", line 167, in main
    print template % (ID, IID, Function[:10], Description[:10],
ErrorNumber, StatusCD)
TypeError: unsubscriptable object

Thanks
Retheesh




More information about the Python-list mailing list