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

2020-01-17 Thread Carlos Segura González
Carlos Segura González added the comment: The thing is that even in the "Language Reference" is not correct. In "https://docs.python.org/3/library/functions.html#sorted"; it is stated "key specifies a function of one argument that is used to extract a comparison ke

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

2020-01-17 Thread Carlos Segura González
Change by Carlos Segura González : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue39374> ___ ___ Python-bugs-list mailing list Un

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

2020-01-17 Thread Carlos Segura González
New submission from Carlos Segura González : 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 e