Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62470
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.013 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; '21,': 0.07; 'arguments': 0.09; 'lawrence': 0.09; 'prevents': 0.09; 'subject:None': 0.09; 'cc:addr:python-list': 0.11; 'accepts': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:key': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'passing': 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; '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; 'subject': 0.69; 'to:none': 0.92; '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:date:message-id:subject:from:cc :content-type; bh=F0VM6Uq1RHLeq/T4QV+42pI0KHvg6UE97XFBZyxpeF4=; b=GHa9mjqZbXvX/fbynHwb8feK3jCUCgBbPT0KCDG70gpuWUSqiE8vvDXGKgRg1S+ODg Ooi7rFK3KTjQFdOpMaJR/8xQ7fKqH4V33kjOdWsfJWlK2rbHoHS9KJ+cYTP8nlK1nVg9 uZ8fGyyheDZKC4BLHOmQ1ysKv2ARfNDaAzDCJG6qeD1FAw6mshmYVdEc5xOuxsj4UJjj 7CPjcwKd5Lc27jsw/18PI1m6QbNikWRGiGQQfCeJ1gn+a9PEh91NpcNOfngfQQXCYnph 0UOlv/Slv7Lx7eIwPJSfhRqv6SKXtXJnSbQXR6KTIWvxrHwaUIOfA9K67McQhPpl4c5o hU4Q== |
| MIME-Version | 1.0 |
| X-Received | by 10.68.173.132 with SMTP id bk4mr39443pbc.169.1387610410603; Fri, 20 Dec 2013 23:20:10 -0800 (PST) |
| In-Reply-To | <l93f7t$a2$1@ger.gmane.org> |
| References | <l93f7t$a2$1@ger.gmane.org> |
| Date | Sat, 21 Dec 2013 18:20:10 +1100 |
| Subject | Re: sort(*, key=None, reverse=None) |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <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 <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.4456.1387610876.18130.python-list@python.org> (permalink) |
| Lines | 10 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1387610876 news.xs4all.nl 2969 [2001:888:2000:d::a6]:55586 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:62470 |
Show key headers only | View raw
On Sat, Dec 21, 2013 at 6: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? The *, means that they're keyword-only arguments. It prevents you from passing them positionally. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: sort(*, key=None, reverse=None) Chris Angelico <rosuav@gmail.com> - 2013-12-21 18:20 +1100
csiph-web