Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'say,': 0.05; 'exception.': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'raises': 0.09; 'subject:()': 0.09; '~ethan~': 0.09; 'subject:question': 0.10; 'def': 0.12; 'jan': 0.12; 'received:70.85.130': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header :User-Agent:1': 0.23; 'sorry,': 0.24; 'mon,': 0.24; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'chris': 0.29; '[1]': 0.29; 'am,': 0.29; 'raise': 0.29; '>>>>': 0.31; 'charset :us-ascii': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'read': 0.60; 'received:173': 0.61; '20,': 0.68; 'ethan': 0.84; 'furman': 0.84; 'closer.': 0.91 Date: Sun, 19 Jan 2014 09:50:08 -0800 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: question about input() and/or raw_input() References: <2b7f1a5d-4145-4f7d-be47-72d5eb207391@googlegroups.com> <07dc8493-fb43-47b4-b080-7bc1ae3d6681@googlegroups.com> <52663f72-8c61-4868-9887-7e980d90ec61@googlegroups.com> <52DBF9DE.80304@stoneleaf.us> In-Reply-To: Content-Type: text/plain; charset=us-ascii; 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 - gator3304.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source-IP: 173.12.184.233 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([173.12.184.233]) [173.12.184.233]:36151 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 2 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3IzMzA0Lmhvc3RnYXRvci5jb20= 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390156580 news.xs4all.nl 2849 [2001:888:2000:d::a6]:60302 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64305 On 01/19/2014 08:38 AM, Chris Angelico wrote: > On Mon, Jan 20, 2014 at 3:14 AM, Ethan Furman wrote: >>>> --> def quux1(x): return str(x+1) >>> --> quux1(2.3) >>> '3.3' >> >> (Will be) fixed in 3.5 [1] :) >> [1] Which is to say, both will raise an exception. > > Why would that raise? Sorry, should have read that closer. It will not raise. The difference I was thinking of is: "%h" % 3.14 # this works vs. hex(3.14) # this raises In 3.5 both will raise. Apologies for the noise. -- ~Ethan~