rdsteed / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

ValueError: too many values to unpack does not point to (right) line #766

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Make a function which returns more parameters than the you catch
   def Bar():
       pass
   def Foo():
       return a, b, c
   a, b = Foo()

Try running the code. 

What is the expected output? What do you see instead?
The given error (ValueError: too many values to unpack) will point to the first 
line of code in the file, not the actual line where the error occurred. I would 
expect the message to point to the line 'a,b = Foo()'

What version of the product are you using? On what operating system?
PyScripter 2.5.3.0 x86
Python 2.7
Windows 7-64

Please provide any additional information below.

Original issue reported on code.google.com by bramveld...@gmail.com on 13 Mar 2014 at 2:03