Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.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.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'wrote:': 0.15; 'did.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Convert': 0.16; "subject:' ": 0.16; 'pm,': 0.16; 'meant': 0.17; 'received:209.85.210.174': 0.19; 'received:mail- iy0-f174.google.com': 0.19; 'language': 0.20; 'header:In-Reply- To:1': 0.22; 'message-id:@mail.gmail.com': 0.28; '24,': 0.29; 'idle': 0.29; 'sun,': 0.30; 'thanks': 0.31; 'chris': 0.32; 'to:addr:python-list': 0.34; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'think': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'what.': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=UlW3WCMMQHeWppEfK/9Rpj2Mh3OTySdtCClfl2jDZPk=; b=TbPdgH9EdOkzHD7hA8LsYt5Kr3MK1N4dZbhwxA5gZnJnVgbVafrtrmUeCunFPmCcdf 0bcKgip2BGGR7MpATeepEaAQ89omX17TEolCksmwPVj4YDGiLCOcfYn9N1RvO7IVm8Il Ff1ysnHRAlF4lV8wSAtihm1k9zrl3m2UxHY/c= MIME-Version: 1.0 In-Reply-To: <65761f82-3f69-4a0c-8159-72e709dd87fe@cq10g2000vbb.googlegroups.com> References: <4e281f97$0$16404$426a74cc@news.free.fr> <4230ed8b-5173-4408-938f-3777dcd60588@t7g2000vbv.googlegroups.com> <4e2bcaf5$0$30004$c3e8da3$5496439d@news.astraweb.com> <1a5604c3-764d-40e1-a063-b05f8729864d@y13g2000yqy.googlegroups.com> <65761f82-3f69-4a0c-8159-72e709dd87fe@cq10g2000vbb.googlegroups.com> Date: Sun, 24 Jul 2011 18:28:09 +1000 Subject: Re: Convert '165.0' to int From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1311496091 news.xs4all.nl 23885 [2001:888:2000:d::a6]:57145 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:10195 On Sun, Jul 24, 2011 at 6:21 PM, Frank Millman wrote: > On Jul 24, 10:07=A0am, Chris Angelico wrote: >> if dec.rtrim('0')!=3D'': >> >> ChrisA > > I think you meant 'rstrip', but yes, neater and faster. > > Thanks Yeah, I did. Mea culpa... every language has it somewhere, but I keep mucking up which one calls it what. That's what I get for not flicking to IDLE before posting! ChrisA