Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.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.019 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'argument': 0.05; 'string': 0.09; 'subject:module': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'objects.': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'pass': 0.26; 'header :In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'decimal': 0.31; 'fri,': 0.33; 'received:google.com': 0.35; 'pm,': 0.38; 'users': 0.40; 'bare': 0.84; 'wish.': 0.84; 'to:none': 0.92 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:cc :content-type; bh=XzpQTSiI8ZmFQJgO0Ls+mWCrJq23ismUL0ck42WjPOU=; b=rYawjVUc8Y49Ur+ZmTwBA9dkuxi79oFPwWgkBR1E1B4oOYfCsLubR6O5fQdd/Shhnv mU8bQ4VqQ96kdKWYdkcivuNTCIwTzS3u/azQxAzrXxnybEpEq7DO9aEzEG7MNL/zElfR SjZD2SMjlrYoeN/0IC5wxGDYuFyhlNvZbSaaA5JCWgXaDNqDe1OFmdmnC94k/9vc4YAB em1M4+XQwYrUBv4n7uJYJWoSzBzVo31jPyVNF+Pe4lKuoDWRk3pJRvepPFVikcSiJane ZrFAWkQLZBE7jn8DM4NVtXBDhQq0PA/vIGoJamab/BnthmpUmGcbITzt5qkyzNKZPl8y J5qg== MIME-Version: 1.0 X-Received: by 10.68.197.36 with SMTP id ir4mr1326692pbc.46.1393565171435; Thu, 27 Feb 2014 21:26:11 -0800 (PST) In-Reply-To: References: <02cdd9c7-aef7-4cc7-a813-cd1c9627ceb4@googlegroups.com> <94b1962a-0004-4c5b-b484-972a166b88b5@googlegroups.com> <55525f2c-fd3a-4927-b642-2dbf5eae7e9b@googlegroups.com> <360e87d2-4daf-4222-8ebe-51f3e4d1fade@googlegroups.com> <9f7b535f-9e5d-45df-96f6-6cd8f6b4a524@googlegroups.com> <63868b32-5206-435d-aa3d-f3040f65f72b@googlegroups.com> Date: Fri, 28 Feb 2014 16:26:11 +1100 Subject: Re: extend methods of decimal module From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393565180 news.xs4all.nl 2829 [2001:888:2000:d::a6]:43083 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67199 On Fri, Feb 28, 2014 at 4:18 PM, Mark H. Harris wrote: > do I make the assumption that all functions will take a string as argument and then let interactive users bare the responsibility to enter a string or decimal... avoiding floats... Just have your users pass in Decimal objects. They can construct them however they wish. ChrisA