Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!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.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'implements': 0.09; 'subject:module': 0.09; 'python': 0.11; 'decimal.': 0.16; 'fits': 0.16; 'philosophy.': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'wed,': 0.18; 'module': 0.19; 'feb': 0.22; 'to:name:python-list@python.org': 0.22; 'math': 0.24; "i've": 0.25; 'extension': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'moved': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'decimal': 0.31; 'extending': 0.31; 'stuff': 0.32; 'guess': 0.33; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'library.': 0.36; 'thanks': 0.36; 'performance': 0.37; 'to:addr :python-list': 0.38; 'pm,': 0.38; '(from': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'finally': 0.65; '854': 0.84; 'routines': 0.84; 'speedy': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=w/lV0+tSn7apL+xfNt3BjzloMZ2uQTNcTfky4x6Ajvg=; b=VLaEMnFwRsDEb7oQKA1lSMGJnFrnX3dDYrnpKiuLgkvV6t7Xr3MdzCDVI3NqehwYbP j3pFeoE0MivzF62NGWqnRiKWLdrf7cTRuFVIEBU6ngZlEyg+MyH7DfJ3oe4kBMHDgbbS zDMpoNDQi2hRf+UKLSTSJaFujf24A/7vaqcbAcLP+UkudtZV2SPO4UCl/Ic2LHP9L4M2 A9OaiV3ukd6bu1jiLaVGpb5n+my4QxDNmM55u2wNf7yt/DCcHR5QN7LBTVW568EXKHTn 1H9RAfXh4Cs42XAecNZJmYmpOjQOViNKya5SzVgJzMLunTemFhsnug5WGXexmGZE8bcH cRug== X-Received: by 10.204.95.2 with SMTP id b2mr834808bkn.179.1392846864802; Wed, 19 Feb 2014 13:54:24 -0800 (PST) MIME-Version: 1.0 Sender: zachary.ware@gmail.com In-Reply-To: <94b1962a-0004-4c5b-b484-972a166b88b5@googlegroups.com> References: <02cdd9c7-aef7-4cc7-a813-cd1c9627ceb4@googlegroups.com> <94b1962a-0004-4c5b-b484-972a166b88b5@googlegroups.com> From: Zachary Ware Date: Wed, 19 Feb 2014 15:54:04 -0600 X-Google-Sender-Auth: z0ct675xmcpG-X98ZZk71L_7r2E Subject: Re: extend methods of decimal module To: "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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392846870 news.xs4all.nl 2978 [2001:888:2000:d::a6]:53371 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:66719 On Wed, Feb 19, 2014 at 3:30 PM, Mark H. Harris wrote: >> >> The decimal module implements IEEE 854 >> > > Thanks Terry... ... long time. > > I would like to find out if there is some iron-clad policy about extending > the implementation of an IEEE standard... decimal module in this case; I'm > just thinking that this particular extension really fits the python > "batteries included" philosophy. > > I guess what I'm really asking for are the same routines found in "bc -l" > math library. I've finally moved my number crunching stuff to python (from bc) > because the performance of "decimal" is finally way better than bc for the > moment, and wrapping python are the math routines for control and processing > is so much better. Anyway, sure would be nice to have a very speedy atan() > function built-in for decimal. You might consider suggesting a "decimal.math" module on python-ideas. -- Zach