Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!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.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'python.': 0.02; 'output': 0.05; 'subject:PEP': 0.07; 'pep': 0.09; 'received:65.55.116.7': 0.16; 'specifier': 0.16; 'wrote:': 0.18; 'wed,': 0.18; '+0000': 0.22; 'to:name:python-list@python.org': 0.22; 'received:65.55.116': 0.24; 'source': 0.25; 'header:In-Reply- To:1': 0.27; 'skip:- 40': 0.29; 'url:mailman': 0.30; 'code': 0.31; 'steven': 0.31; 'url:python': 0.33; 'date:': 0.34; 'classes': 0.35; 'something': 0.35; 'no,': 0.35; 'url:listinfo': 0.36; 'possible': 0.36; 'url:org': 0.36; 'so,': 0.37; 'email addr:python.org': 0.37; 'to:addr:python-list': 0.38; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 're:': 0.63; 'email name:python-list': 0.65; 'rendering': 0.68; 'causes,': 0.84; 'carlos': 0.91; '2013': 0.98 X-TMN: [2hPTAsEYZxSEACHZ8C/EGltOZ5tDNfmY] X-Originating-Email: [carlosnepomuceno@outlook.com] From: Carlos Nepomuceno To: "python-list@python.org" Subject: RE: PEP 378: Format Specifier for Thousands Separator Date: Wed, 22 May 2013 05:56:53 +0300 Importance: Normal In-Reply-To: <519c30b0$0$6599$c3e8da3$5496439d@news.astraweb.com> References: , , , , , <519BD0D2.5080203@gmail.com>, , <519c30b0$0$6599$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 22 May 2013 02:56:53.0847 (UTC) FILETIME=[03C34670:01CE5698] 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369191420 news.xs4all.nl 15939 [2001:888:2000:d::a6]:57354 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45699 ----------------------------------------=0A= > From: steve+comp.lang.python@pearwood.info=0A= > Subject: Re: PEP 378: Format Specifier for Thousands Separator=0A= > Date: Wed=2C 22 May 2013 02:42:56 +0000=0A= > To: python-list@python.org=0A= >=0A= > On Tue=2C 21 May 2013 23:22:24 +0300=2C Carlos Nepomuceno wrote:=0A= >=0A= >> Anyway=2C is it possible to overload str.__mod__() without deriving a=0A= >> class? I mean to have something like:=0A= >=0A= > No=2C not in Python. If you want to monkey-patch built-in classes on the= =0A= > fly=2C with all the troubles that causes=2C use Ruby.=0A= >=0A= =0A= So=2C the only alternative to have "'%=2Cd' % x" rendering the thousands se= parator output would a C source code modification?=0A= =0A= > --=0A= > Steven=0A= > --=0A= > http://mail.python.org/mailman/listinfo/python-list =