Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'model,': 0.05; 'preferably': 0.05; 'scipy': 0.05; 'subject:Python': 0.06; 'desirable.': 0.07; 'subject:PEP': 0.07; 'apis': 0.09; 'pep': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:module': 0.09; 'things,': 0.09; 'api': 0.11; '(class': 0.16; 'fallback': 0.16; 'feasible': 0.16; 'from:addr:behnel.de': 0.16; 'from:addr:stefan_ml': 0.16; 'from:name:stefan behnel': 0.16; 'naming': 0.16; 'numpy': 0.16; 'rationale': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Adding': 0.16; 'toolset': 0.16; 'users.': 0.18; 'module': 0.19; 'stefan': 0.19; 'meant': 0.20; 'install': 0.23; 'header :User-Agent:1': 0.23; 'section.': 0.24; 'skip': 0.24; 'switch': 0.26; 'asking': 0.27; 'header:X-Complaints-To:1': 0.27; 'header :In-Reply-To:1': 0.27; 'function': 0.29; 'generally': 0.29; "i'm": 0.30; 'code': 0.31; 'writes:': 0.31; 'could': 0.34; 'etc.)': 0.35; 'received:84': 0.35; 'but': 0.35; 'really': 0.36; 'executing': 0.36; 'installing': 0.36; 'similar': 0.36; 'should': 0.36; 'easily': 0.37; 'ben': 0.38; 'e.g.': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'received:org': 0.40; 'users': 0.40; 'easy': 0.60; 'simple': 0.61; 'name': 0.63; 'more': 0.64; 'skip:\xe2 10': 0.65; 'feeling': 0.68; 'sound': 0.68; 'battery': 0.84; 'here...': 0.84; 'received:arcor-ip.net': 0.84; 'received:pools.arcor-ip.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Stefan Behnel Subject: Re: PEP 450 Adding a statistics module to Python Date: Sat, 10 Aug 2013 09:55:59 +0200 References: <520592f9$0$30000$c3e8da3$5496439d@news.astraweb.com> <7w7gfukuf1.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: dslb-084-056-052-021.pools.arcor-ip.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 In-Reply-To: <7w7gfukuf1.fsf@benfinney.id.au> 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1376121374 news.xs4all.nl 15901 [2001:888:2000:d::a6]:37109 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52297 Ben Finney, 10.08.2013 07:05: > Skip Montanaro writes: >> Given that installing numpy or scipy is generally no more difficult >> that executing "pip install (scipy|numpy)" I'm not really feeling the >> need for a battery here... > > See the Rationale of PEP 450 for more reasons why “install NumPy” is not > a feasible solution for many use cases, and why having ‘statistics’ as a > pure-Python, standard-library package is desirable. The rationale suggests that the module is meant as a simple toolset for non-NumPy users. Are the APIs (class model, function names, etc.) similar enough to make it easy to switch, preferably in both directions? It would be good if a stdlib statistics module could be used as a SciPy fallback for the "simple" things, and if users of the stdlib module could easily switch their code to SciPy if they need more speed/features/whatever at some point, without having to relearn the name of each single function. I'm not asking for compatibility (doesn't sound reasonable without NumPy arrays), but I think that a similarity in terms of API naming (as far as it makes sense) should be clearly stated, e.g. in the Design Decisions section. Stefan