
17 Apr
2009
17 Apr
'09
8:31 a.m.
Raymond Hettinger wrote:
The discussion has indeed sidetracked with handling the special cases, signature definition and whatnot,
Does the following code emit 10 or -10?
print(min([], default=10, key=operator.neg))
10, obviously. The result is always one of the provided values. The key function is only used for selecting which one
- Jacob