Path: csiph.com!1.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Ethan Furman Newsgroups: comp.lang.python Subject: Re: Quick poll: gmean or geometric_mean Date: Sat, 09 Jul 2016 06:51:52 -0700 Lines: 32 Message-ID: References: <57808af6$0$1602$c3e8da3$5496439d@news.astraweb.com> <1468043386.1292856.661217857.45C882AD@webmail.messagingengine.com> <57809936.6020303@stoneleaf.us> <57810178.8060500@stoneleaf.us> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de FdITLFN7sw2UyzOs5jqKXA9qtrwMe7w5yfFLCLCz+V7A== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'anyway.': 0.04; 'context': 0.05; 'preference': 0.05; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; '10:49': 0.16; 'enough.': 0.16; 'latter,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'renaming': 0.16; 'wrote:': 0.16; 'memory': 0.17; 'stefan': 0.18; 'solution.': 0.18; '>>>': 0.20; 'all,': 0.20; 'math': 0.20; 'names.': 0.22; 'am,': 0.23; 'consistent': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'header:User- Agent:1': 0.26; 'rest': 0.26; 'turns': 0.27; 'function': 0.28; 'fine': 0.28; '~ethan~': 0.29; "i'm": 0.30; 'that.': 0.30; 'code': 0.30; 'filled': 0.30; 'maybe': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'clear': 0.35; 'fresh': 0.35; 'but': 0.36; 'needed': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'names': 0.38; 'whatever': 0.39; 'does': 0.39; 'to:addr:python.org': 0.40; 'easy': 0.60; 'further': 0.62; 'charset:windows-1252': 0.62; 'direct': 0.68; 'jul': 0.72; 'subject:Quick': 0.84; 'ethan': 0.91; 'furman': 0.91; 'subject:skip:g 10': 0.91 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <57810178.8060500@stoneleaf.us> X-Mailman-Original-References: <57808af6$0$1602$c3e8da3$5496439d@news.astraweb.com> <1468043386.1292856.661217857.45C882AD@webmail.messagingengine.com> <57809936.6020303@stoneleaf.us> Xref: csiph.com comp.lang.python:111222 On 07/09/2016 03:23 AM, Stefan Behnel wrote: > Ethan Furman schrieb am 09.07.2016 um 08:27: >> On 07/08/2016 10:49 PM, Random832 wrote: >>> On Sat, Jul 9, 2016, at 01:26, Steven D'Aprano wrote: >> >>>> hmean and gmean >>>> >>>> harmonic_mean and geometric_mean >>> >>> The latter, definitely. >> >> My preference is also for the latter. However, if the rest of the module >> is filled with abbreviated names you may as well be consistent with them. > > +1 for consistency, but I'm just fine with the short names. It's in the > statistics module after all, so the context is very narrow and clear and > people who don't know which to use or what the one does that they find in a > given piece of code will have to read the docs and maybe fresh up their > rusty math memory anyway. Longer names don't help much with that. > > If further clarity is needed in a given code context that uses a direct > name import, renaming the function at the same time is easy enough. I often > do that with "os.path.join", for example, which turns into "join_path" on > import. Same problem, easy solution. +1 I would definitely need to read the docs, whatever the name. ;) -- ~Ethan~