Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!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.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'value,': 0.04; 'raised': 0.07; 'correct.': 0.09; 'subject:error': 0.09; 'exception': 0.12; '"expected': 0.16; 'received:10.2': 0.16; 'roy': 0.16; 'wording': 0.16; 'header:In-Reply-To:1': 0.22; 'saying': 0.26; '(in': 0.26; 'fact': 0.27; 'elements': 0.29; 'error': 0.29; '---': 0.31; 'actual': 0.32; 'header:User-Agent:1': 0.33; 'to:addr:python- list': 0.34; 'visible': 0.34; 'explain': 0.36; 'gotten': 0.37; 'but': 0.37; 'received:org': 0.38; 'returned': 0.39; "it's": 0.40; 'third': 0.40; 'to:addr:python.org': 0.40; 'might': 0.40; 'more': 0.61; 'immediate': 0.65; 'subject:day': 0.68; 'kept': 0.68; 'going,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=modelnine.org; s=modelnine1012; t=1323359452; bh=Kxr/h3mCBoAi7ZlzIQCY48dJhY9GLvScy2RaeCknFdQ=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=NSAeWMNQSXQH8OQ5ossBj3RAJpMYdZY6y03iyO0jlONtdDgCaGKGrLN2uiGOOwFP8 /sgDIzdEVoiDR7IKEOoW+6BPjUu9+e5aLGvRRJ3yeMvOGpLDWuwpzLCB+QRby6Ffru M4NtrkqTYFTlIUWy3XVN6EldVn5UcbgX1MVWjihI= Date: Thu, 08 Dec 2011 16:50:44 +0100 From: Heiko Wundram User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111130 Thunderbird/9.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Misleading error message of the day References: <18647617.2258.1323358966076.JavaMail.geo-discussion-forums@yqf20> In-Reply-To: <18647617.2258.1323358966076.JavaMail.geo-discussion-forums@yqf20> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323359453 news.xs4all.nl 6967 [2001:888:2000:d::a6]:41462 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16842 Am 08.12.2011 16:42, schrieb Roy Smith: > The exception was raised when i() returned it's third value, so saying "expected 2, got 3" is exactly correct. Yes, it is true that it might have gotten more if it kept going, but that's immaterial; the fact that it got to 3 is what caused the Holy Hand Grenade to be thrown. Please explain how that error message (in case you're not aiming at the actual count of elements in the source) differs from the curent wording "too many values", as you're simply displaying "expected n, got n+1" where n is visible from the immediate exception output... -- --- Heiko.