Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62470
| References | <l93f7t$a2$1@ger.gmane.org> |
|---|---|
| Date | 2013-12-21 18:20 +1100 |
| Subject | Re: sort(*, key=None, reverse=None) |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4456.1387610876.18130.python-list@python.org> (permalink) |
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