Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'valueerror:': 0.09; 'subject:error': 0.09; '"expected': 0.16; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'kern': 0.16; 'length,': 0.16; 'message-id:@tim.thechases.com': 0.16; 'received:70.251': 0.16; 'received:dsl.rcsntx.swbell.net': 0.16; 'received:rcsntx.swbell.net': 0.16; 'received:swbell.net': 0.16; 'roy': 0.16; 'unpack': 0.16; 'wrote:': 0.18; 'header:In-Reply- To:1': 0.22; 'cc:2**0': 0.24; 'generally': 0.30; "didn't": 0.31; 'values': 0.32; 'certainly': 0.32; 'header:User-Agent:1': 0.33; 'done': 0.34; 'to:addr:python-list': 0.34; 'too': 0.34; 'thursday,': 0.37; 'but': 0.37; 'useful': 0.38; 'help': 0.39; 'to:addr:python.org': 0.40; 'might': 0.40; '2011': 0.61; 'your': 0.61; 'subject:day': 0.68; 'tracking': 0.70; 'hand,': 0.76 Date: Thu, 08 Dec 2011 11:41:17 -0600 From: Tim Chase User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111120 Icedove/3.1.16 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Misleading error message of the day References: <32921150.1028.1323358205974.JavaMail.geo-discussion-forums@yqbz41> In-Reply-To: <32921150.1028.1323358205974.JavaMail.geo-discussion-forums@yqbz41> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Source: X-Source-Args: X-Source-Dir: Cc: Roy Smith X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323366089 news.xs4all.nl 6979 [2001:888:2000:d::a6]:49760 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16855 On 12/08/11 09:30, Roy Smith wrote: > On Thursday, December 8, 2011 9:47:02 AM UTC-5, Robert Kern > wrote: > >> Would including the respective numbers help your thought >> processes? >> >> ValueError: too many values to unpack (expected 2, got 3) > > I don't know if that would have done the trick for me on this > particular one. On the other hand, adding "expected X, got Y" > to the message would generally be a good thing. given the nature of the message, and the interaction with iterators-of-arbitrary/infinite length, it might have to be reduced to "Expected N, got more" or for the case where you didn't get enough, you know how many you got: "Expected N, but only got M". But the extra information would certainly be useful in tracking it down. -tkc