Re: functools documentation - help with funny words

2014-11-09 Thread Ian Kelly
On Sun, Nov 9, 2014 at 2:06 AM, Veek M wrote: > https://docs.python.org/3.4/library/functools.html > > 1. "A key function is a callable that accepts one argument and returns > another value indicating the position in the desired collation sequence." > > x = ['x','z','q']; sort(key=str.upper) This

functools documentation - help with funny words

2014-11-09 Thread Veek M
https://docs.python.org/3.4/library/functools.html 1. "A key function is a callable that accepts one argument and returns another value indicating the position in the desired collation sequence." x = ['x','z','q']; sort(key=str.upper) My understanding is that, x, y, .. are passed to the key fun