On Fri, Dec 27, 2019 at 03:40:10AM -0000, Marco Sulla via Python-ideas wrote:

> Oh my... Mertz, listen to me, you don't need a parameter. You only 
> need a key function to pass to `sorted()`

How do you pass the key function to sorted() without a parameter?

> median(iterable, key=iliadSort)

What is the `key` parameter, if its not a parameter?


Putting aside handling of NANs, are there any use-cases for a key 
parameter to median?


-- 
Steven
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/CJZOJWB3336KAE4XEJHD5KUH6BGCSW7M/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to