[Python-Dev] decorate-sort-undecorate
Tim Peters
tim.one at comcast.net
Mon Oct 13 19:45:40 EDT 2003
[Phillip J. Eby]
> Why not just have the decoration be (key,index,value) then? Why does
> the key function need the index?
It doesn't if indices are synthesized by magic under the covers. Then it
starts acting more like Zope (we know it does *something*, but it's not
clear what <wink>). If you want to pay that expense now, you do so
explicitly, and nothing about it is hidden.
More information about the Python-Dev
mailing list