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 -- http://mail.python.org/mailman/listinfo/python-list