[New-bugs-announce] [issue3071] The ValueError raised by failing to unpack sequence should have more information.

Jonathan Lange report at bugs.python.org
Tue Jun 10 04:06:06 CEST 2008


New submission from Jonathan Lange <jml at mumak.net>:

Here's the current message:

Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> [foo] = [2, 3]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: too many values to unpack

It would be good if the message of the ValueError contained information
about how many values were expected and how many values were given.

----------
components: Interpreter Core
messages: 67885
nosy: jml
severity: normal
status: open
title: The ValueError raised by failing to unpack sequence should have more information.
type: feature request
versions: Python 2.3, Python 2.4, Python 2.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3071>
_______________________________________


More information about the New-bugs-announce mailing list