On 2 Sep 2009, at 12:15 , Rob Cliffe wrote: > > @Identity(DecoList[0]) # THIS WORKS > def foo(): > pass For what it's worth, you don't need an id function, you can simply write @itemgetter(0)(decorators) def foo(): 'whatever' or @decorators.__getitem__(0) def foo(): 'whatever'
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