Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #96052
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail |
|---|---|
| Return-Path | <random832@fastmail.us> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'works.': 0.07; 'insertion': 0.09; 'received:internal': 0.09; 'subject:into': 0.09; 'tune': 0.09; 'python.': 0.11; 'java,': 0.15; 'variables': 0.15; 'int32': 0.16; 'least.': 0.16; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'subsequences': 0.16; 'verbose': 0.16; "wouldn't": 0.16; 'language': 0.19; 'versions': 0.20; 'first,': 0.20; 'class,': 0.22; 'either.': 0.22; 'names.': 0.22; 'appears': 0.23; 'code,': 0.23; 'properties': 0.24; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'sort': 0.25; 'example': 0.26; 'actual': 0.28; 'container': 0.29; 'classes': 0.30; 'code': 0.30; 'certainly': 0.30; 'somebody': 0.30; 'class': 0.33; "d'aprano": 0.33; 'shorter': 0.33; 'steven': 0.33; 'that,': 0.34; 'functions.': 0.35; 'instance': 0.35; 'but': 0.36; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'being': 0.37; 'expect': 0.37; 'received:66': 0.38; 'does': 0.39; 'rather': 0.39; 'to:addr:python.org': 0.40; 'from:no real name:2**0': 0.60; 'header:Message-Id:1': 0.61; 'back': 0.62; 'more': 0.63; 'fall': 0.66; 'consequently': 0.84; 'idiomatic': 0.84; 'prefers': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=Ov9AWX/SP56MGYZcYPxcIuPzYTY=; b=J/gSqX MxkR3fOXrXQl5bWq8XocvpaXB2wllWG/L81YLoKk6d07JkrzFyetsIQcaby5fJWf kdCaFiIY4n/oR/eRwXrPkDgQfxRDR82lJZ5zy4U0R+Du391AHRp6mFPtUlI3nXi7 VxRpAGAvnfh9HLAMsoDiePwYYi17njsCUQ508= |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=Ov9AWX/SP56MGYZ cYPxcIuPzYTY=; b=uB4Zh+1VzLqDyZyoQM2aVW6SAGQLJcXxJWE29hKFMmRv7c/ omfAiGv8vt4h5CQKx2ltKxyl9MHlJ1iBzbmlfjodjFLCHEo2RHS6/HF6eK25Gxkm sspkaOKuyg9uMCDkazf/8wJzAanDa+6VKTP5/jFiBX6UQcDi+zSNRMSkkg50= |
| X-Sasl-Enc | RR/94ZgR5dpBPA9TA+kOAwsrXAT9qO4jAT9jt2m7f8fy 1441517203 |
| From | random832@fastmail.us |
| To | python-list@python.org |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | 7bit |
| Content-Type | text/plain |
| X-Mailer | MessagingEngine.com Webmail Interface - ajax-4500bf93 |
| Subject | Re: Program in or into (was Python handles globals badly) |
| Date | Sun, 06 Sep 2015 01:26:43 -0400 |
| In-Reply-To | <55eba65d$0$1665$c3e8da3$5496439d@news.astraweb.com> |
| References | <c3363$547e74fe$5419aafe$24179@news.ziggo.nl> <58e0d1b5-a7ca-4811-9926-fba1b7ede83f@googlegroups.com> <CAPTjJmpkry3qBL9ntf4gUsE-aDGLooHqViMBW=ZNcK2Lb9e9nA@mail.gmail.com> <55EA487D.2010807@gmail.com> <mailman.155.1441418073.8327.python-list@python.org> <03c53b53-4103-4fd8-8851-caeccda8e016@googlegroups.com> <55eba65d$0$1665$c3e8da3$5496439d@news.astraweb.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.165.1441517206.8327.python-list@python.org> (permalink) |
| Lines | 28 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1441517206 news.xs4all.nl 23763 [2001:888:2000:d::a6]:58993 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:96052 |
Show key headers only | View raw
Steven D'Aprano <steve@pearwood.info> writes: > That depends. Is the example C# code idiomatic for the language? Not in the least. My first clue was Int32 - nobody actually uses those names. > Or was it > written by somebody ignorant of C#, and consequently is a poor example of > badly-written and unidiomatic "Java in C#"? > > If the first, then I expect I would write the C# code, because it is > idiomatic and works. What would you do? > > It is certainly true that C# appears to be a more verbose language than > Python. Based on this example, it prefers to use classes with methods > rather than stand-alone functions, You certainly need to put methods in a class, but it's absurd that they made it an actual instantiable class with instance properties for the variables they required for sorting, rather than there being a class that's just there as a container for the functions. I wouldn't do that in Java, either. They also gave it features a lot of the shorter versions on the page don't have; the ability to fall back to insertion sort for short lists, and the ability to tune exactly how it does that, and how many subsequences to sort and merge.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Python handles globals badly. tdev@freenet.de - 2015-09-04 12:11 -0700
Re: Python handles globals badly. Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-04 13:48 -0600
Re: Python handles globals badly. Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-04 13:52 -0600
Re: Python handles globals badly. Chris Angelico <rosuav@gmail.com> - 2015-09-05 10:27 +1000
Re: Python handles globals badly. Michael Torrie <torriem@gmail.com> - 2015-09-04 19:42 -0600
Re: Python handles globals badly. Chris Angelico <rosuav@gmail.com> - 2015-09-05 11:54 +1000
Program in or into (was Python handles globals badly) Rustom Mody <rustompmody@gmail.com> - 2015-09-04 20:18 -0700
Re: Program in or into (was Python handles globals badly) Chris Angelico <rosuav@gmail.com> - 2015-09-05 13:31 +1000
Re: Program in or into (was Python handles globals badly) Steven D'Aprano <steve@pearwood.info> - 2015-09-06 12:35 +1000
Re: Program in or into (was Python handles globals badly) MRAB <python@mrabarnett.plus.com> - 2015-09-06 03:54 +0100
Re: Program in or into (was Python handles globals badly) Rustom Mody <rustompmody@gmail.com> - 2015-09-05 21:35 -0700
Re: Program in or into (was Python handles globals badly) random832@fastmail.us - 2015-09-06 01:26 -0400
Re: Program in or into (was Python handles globals badly) wxjmfauth@gmail.com - 2015-09-06 00:42 -0700
Re: Program in or into (was Python handles globals badly) Ian Kelly <ian.g.kelly@gmail.com> - 2015-09-06 18:19 -0600
csiph-web