Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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; 'subject:Python': 0.05; 'currency': 0.07; 'python': 0.09; 'integer,': 0.09; 'lawrence': 0.09; 'thread': 0.11; 'aug': 0.13; 'sat,': 0.15; 'debated': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Objects': 0.16; 'threads': 0.16; 'wrote:': 0.17; 'instance,': 0.17; 'integer': 0.17; 'trying': 0.21; 'received:209.85.214.174': 0.21; "i've": 0.23; 'header:In-Reply- To:1': 0.25; '(which': 0.26; 'fit': 0.26; 'wondering': 0.26; 'message-id:@mail.gmail.com': 0.27; 'represented': 0.29; "i'm": 0.29; 'to:addr:python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'store': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'times': 0.63; 'information,': 0.63; 'here': 0.65; 'cent': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=tC8KemEYT5ZXW8NPcDaNtbH0zpSGJtd8av70k4Tdfsw=; b=GFsMMQwts/xxNMfuHaGu3pWlS2tpMjBmj1/BSgG7meGcRukBoBpU5kwLKSHastMWDx LMbSZ1iVOFGMu/3ZKy6Xs2WCe2WE+MbuighaZAT79em1X43qGnJoUStsj6dUL0KlN9gp ZoRVt1WToI8dYD7FKu0ZohKf7ffHJTHuNY61sWrBMyxIkbA2EXQkk7yFDHBAINscbul9 Cm/Ezd/FHmo5qitDsMGoN+olzQnUbE1bcAWh434ncQqOxuQWwyv16MdazhcWGmsHorIw pP7RkLNcpcDNqNa/soxWTKnYR3275IMHOIUkq05nSyisL+pRuRyU5XyVOR4q9ixAXMQs GAXg== MIME-Version: 1.0 In-Reply-To: References: <18409992-1e28-4721-8e64-60c69668da4e@googlegroups.com> <87d32i1ntc.fsf@benfinney.id.au> <5035d3e4$0$1645$c3e8da3$76491128@news.astraweb.com> <50366ec8$0$6574$c3e8da3$5496439d@news.astraweb.com> <503840c5$0$6574$c3e8da3$5496439d@news.astraweb.com> Date: Sat, 25 Aug 2012 20:23:46 +1000 Subject: Re: Objects in Python From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1345890230 news.xs4all.nl 6859 [2001:888:2000:d::a6]:59794 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27862 On Sat, Aug 25, 2012 at 6:55 PM, Mark Lawrence wrote: > I'm just wondering out aloud if the number of times this type of thread has > been debated here will fit into a Python long or float? Well, when I have to store currency information, I like to store it as an integer, using the native currency's "small unit" (eg the cent in dollar+cent currencies). In this instance, instead of trying to count the threads (which would be fractional), just count the number of posts. It then is an integer, and I've yet to find any integer that can't be represented as a Python long (or, in 3.x, int). ChrisA