Bugs item #1458903, was opened at 2006-03-27 05:33 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1458903&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Parser/Compiler Group: Python 2.5 Status: Open Resolution: None Priority: 5 Submitted By: Jeong-Min Lee (falsetru) Assigned to: Nobody/Anonymous (nobody) Summary: lambda with a parenthesized argument raises TypeError Initial Comment: ================================================== [EMAIL PROTECTED] ~ $ python2.5 Python 2.5a0 (trunk:43324, Mar 26 2006, 14:18:23) [GCC 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> (lambda(x): x)(1) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 1, in <lambda> TypeError: unpack non-sequence >>> (lambda(x): x)((1,)) 1 >>> (lambda(x): x)((1,2)) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<stdin>", line 1, in <lambda> ValueError: too many values to unpack >>> not 2.4 compatible ================================================== [EMAIL PROTECTED] ~ $ python2.4 Python 2.4.2 (#1, Oct 15 2005, 13:17:32) [GCC 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> (lambda(x): x)(1) 1 >>> (lambda(x): x)((1,)) (1,) >>> (lambda(x): x)((1,2)) (1, 2) >>> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1458903&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com