Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62468

Re: sort(*, key=None, reverse=None)

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jeanpierreda@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.055
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'english.': 0.04; 'arguments': 0.09; 'lawrence': 0.09; 'subject:None': 0.09; 'cc:addr:python-list': 0.11; 'accepts': 0.16; 'subject:key': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'cc:addr:python.org': 0.22; 'refers': 0.24; 'cc:2**0': 0.24; 'sort': 0.25; 'header:In-Reply-To:1': 0.27; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:python': 0.33; 'fri,': 0.33; 'plain': 0.33; 'received:google.com': 0.35; 'method': 0.36; 'url:org': 0.36; 'two': 0.37; 'list': 0.37; 'url:library': 0.38; 'pm,': 0.38; 'url:3': 0.61; 'simply': 0.61; 'here': 0.66; 'believe': 0.68; '20,': 0.68; 'subject': 0.69; 'repeat': 0.74; 'to:addr:yahoo.co.uk': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=zyfzhF9KRoVzxmqqcFRKDtbMogFbZSgaXsGV+nf9SP8=; b=XbXJXMWsE9+p4VQVJZKpq/l3eU96GKia/9cKHcVBbpxu0Laeu/ndh4lt79D2lTKYw9 GhddoimkZwhwPp06/gFVmM4lwEL7iiKwt1uxfMR8I/taD6lt3B5+p9CyHLW/sPgVx30R TgIMx84na4IDprNFUrctQE6H0AtnlIJYo3G35PlH/Zgq8j26VZqj9qJgsNMiyVMx8m3p aDkSXw3gO9dIhzKaRYt3WZAurx1dPmYogLP/mUqdOc8/Gi8P8+PWcUaCZxQF8QFz1HuR wRZENK+U0vFJyKoLgGK2aAgH0yD06h4udFB+crHMtDgd58s8XDRN/XRyizRil9qJurMz iU7Q==
X-Received by 10.224.128.134 with SMTP id k6mr22177933qas.68.1387610499299; Fri, 20 Dec 2013 23:21:39 -0800 (PST)
MIME-Version 1.0
In-Reply-To <l93f7t$a2$1@ger.gmane.org>
References <l93f7t$a2$1@ger.gmane.org>
From Devin Jeanpierre <jeanpierreda@gmail.com>
Date Fri, 20 Dec 2013 23:20:59 -0800
Subject Re: sort(*, key=None, reverse=None)
To Mark Lawrence <breamoreboy@yahoo.co.uk>
Content-Type text/plain; charset=UTF-8
Cc "comp.lang.python" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.4454.1387610507.18130.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1387610507 news.xs4all.nl 2857 [2001:888:2000:d::a6]:50491
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62468

Show key headers only | View raw


On Fri, Dec 20, 2013 at 11:16 PM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> The subject refers to the list sort method given here
> http://docs.python.org/3/library/stdtypes.html#list.  I believe that the
> "*," bit is simply a typo, given that the docs also state "sort() accepts
> two arguments that can only be passed by keyword".  Am I correct?

It's good practice in technical writing to repeat yourself: once in
the formal spec, and once in plain english. I don't see why this would
be a typo.

-- Devin

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: sort(*, key=None, reverse=None) Devin Jeanpierre <jeanpierreda@gmail.com> - 2013-12-20 23:20 -0800

csiph-web