[New-bugs-announce] [issue39374] Key in sort -> Callable Object instead of function

Carlos Segura González report at bugs.python.org
Fri Jan 17 18:11:22 EST 2020


New submission from Carlos Segura González <carlos.segura at cimat.mx>:

In the Documentation, the "Sorting HOW TO" (https://docs.python.org/3/howto/sorting.html) states that "have a key parameter to specify a function to be called". However, it might be other callable objects. In fact, some of the examples given in the documentation are not with functions.

I suggest: "have a key parameter to specify a callable object that is called..."

----------
assignee: docs at python
components: Documentation
messages: 360219
nosy: Carlos Segura González, docs at python
priority: normal
severity: normal
status: open
title: Key in sort -> Callable Object instead of function
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39374>
_______________________________________


More information about the New-bugs-announce mailing list