Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'that?': 0.05; 'subject:PEP': 0.07; 'string': 0.09; 'arguments': 0.09; 'converted': 0.09; 'formatting': 0.09; 'pep': 0.09; 'def': 0.12; 'specifier': 0.16; 'typeerror:': 0.16; "why's": 0.16; 'thu,': 0.19; 'to:name:python-list@python.org': 0.22; '(by': 0.24; 'received:65.55.116': 0.24; 'header:In-Reply-To:1': 0.27; 'skip:- 40': 0.29; "doesn't": 0.30; '"",': 0.31; '>>>>': 0.31; 'file': 0.32; '(most': 0.33; 'date:': 0.34; 'email addr:python.org': 0.37; 'handle': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'subject:': 0.39; 'to:addr:python.org': 0.39; 're:': 0.63; 'email name:python-list': 0.65; "'2'": 0.84; '2013': 0.98 X-TMN: [rLt65eroA2kmFX7hL41Ow6N5sUJG8b6i] X-Originating-Email: [carlosnepomuceno@outlook.com] From: Carlos Nepomuceno To: "python-list@python.org" Subject: RE: PEP 378: Format Specifier for Thousands Separator Date: Thu, 23 May 2013 18:26:49 +0300 Importance: Normal In-Reply-To: References: , , , , , , , , , , , , , , <519c348a$0$6599$c3e8da3$5496439d@news.astraweb.com>, , <519C3D99.5040107@gmail.com>, , , , <519cdcff$0$6599$c3e8da3$5496439d@news.astraweb.com>, , , , <87eaaf24-df6a-4f6b-b873-16ca96c12e24@b2g2000yqe.googlegroups.com>, , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 23 May 2013 15:26:50.0379 (UTC) FILETIME=[F232EDB0:01CE57C9] X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369322819 news.xs4all.nl 15915 [2001:888:2000:d::a6]:48484 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45813 ----------------------------------------=0A= > Date: Thu=2C 23 May 2013 06:44:05 -0700=0A= > Subject: Re: PEP 378: Format Specifier for Thousands Separator=0A= > From: pruebauno@latinmail.com=0A= > To: python-list@python.org=0A= [...]=0A= >>>> eggs(a=2Cf)=0A= > Traceback (most recent call last):=0A= > File ""=2C line 1=2C in =0A= > eggs(a=2Cf)=0A= > File ""=2C line 1=2C in eggs=0A= > def eggs(spam=2C ham): return spam % ham=0A= > TypeError: not all arguments converted during string formatting=0A= >>>> '%s'%(5%3)=0A= > '2'=0A= =0A= So % doesn't handle tuples! Why's that? Is it intentional (by design)? = =