On 6/5/2012 2:26 PM, PJ Eby wrote: > On Tue, Jun 5, 2012 at 12:42 PM, Terry Reedy <tjreedy at udel.edu > <mailto:tjreedy at udel.edu>> wrote: > I think you should just store the decorators in the correct order of use > + __decorators__ = [deco1, deco2] > and avoid the nonsense (time-waste) of making an indirect copy via > list_iterator and reversing it each time the attribute is used. > > > It's for symmetry and straightforward translation with stacked > decorators, i.e. between: > > @deco1 > @deco2 > [declaration] > > and __decorators__ = [deco1, deco2] > > Doing it the other way now means a different order for people to > remember; there should be One Obvious Order for decorators, and the one > we have now is it. You and I have different ideas of 'obvious' in this context. But since you will use this and and me probably not, let your idea rule. -- Terry Jan Reedy
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