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\Li b\site-packages\python win\pywin\frame work\scriptutil s.py",
line 310, in RunScript
exec codeObject in __main__.__dict __
File "Q:\PythonScrip ts\InventoryCom pareCase.py", line 276, in ?
main()
File "Q:\PythonScrip ts\InventoryCom pareCase.py", line 167, in main
print template % (ID, IID, Function[:10], Description[:10],
ErrorNumber, StatusCD)
TypeError: unsubscriptable object
Thanks
Retheesh
print a part of a string. Is there a better approach for this...
Traceback (most recent call last):
File
"C:\Python24\Li b\site-packages\python win\pywin\frame work\scriptutil s.py",
line 310, in RunScript
exec codeObject in __main__.__dict __
File "Q:\PythonScrip ts\InventoryCom pareCase.py", line 276, in ?
main()
File "Q:\PythonScrip ts\InventoryCom pareCase.py", line 167, in main
print template % (ID, IID, Function[:10], Description[:10],
ErrorNumber, StatusCD)
TypeError: unsubscriptable object
Thanks
Retheesh
Comment