[Python-Dev] decorate-sort-undecorate
Fred L. Drake, Jr.
fdrake at acm.org
Tue Oct 14 14:15:52 EDT 2003
Raymond Hettinger writes:
> Besides immortality and speed, another consideration is the interaction
> between the cmp function and the key function. If both are specified,
> then the underlying decoration becomes visible to the user:
Or the cmp function is only passed the decoration. Or we disallow
specifying both. Passing (decoration, index, value) for each value
strikes me as just plain wrong.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation
More information about the Python-Dev
mailing list