ValueError: too many values to unpack
k.retheesh at gmail.com
k.retheesh at gmail.com
Thu Jun 8 19:49:12 EDT 2006
Thank you, that solved my problem.
Thanks
Retheesh
alisonken1 wrote:
> k.retheesh at gmail.com wrote:
> <snip>
> > 56 records were different
> > Type, FileType,
> > Item,
> > Hash,
> >
> > Path, Size, CullCd, Ext, DtCr,
> > DtLMd, DtLAc
> > 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 234, in ?
> > main()
> > File "Q:\PythonScripts\InventoryCompareCase.py", line 117, in main
> > for (Type,FileType,Item,Hash,Path,Size,CullCd,Ext,DtCr,DtLMd,DtLAc)
> > in infoDiffs :
> > ValueError: too many values to unpack
> >
> > Thanks
> > Retheesh
>
> The "too many values to unpack" indicates you don't have enough
> variables in the [for (...) in infoDiffs: ] construct.
>
> You also may want to change some of the names; although "Type"
> (variable name) and "type" (python function) should be different, it's
> good practice to not use names that are similar to functions.
More information about the Python-list
mailing list