A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/038666.html below:

[Python-Dev] decorate-sort-undecorate

[Python-Dev] decorate-sort-undecorate [Python-Dev] decorate-sort-undecoratePhillip 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4