[Python-Dev] decorate-sort-undecorate

Phillip J. Eby pje at telecommunity.com
Mon Oct 13 19:25:57 EDT 2003


At 07:14 PM 10/13/03 -0400, Tim Peters wrote:
>Alas, in decorator=function syntax, there's no clear way in general to write
>function so that it knows the index of the object passed to it.

Why not just have the decoration be (key,index,value) then?  Why does the 
key function need the index?




More information about the Python-Dev mailing list