advice about `correct' use of decorator
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Mon Aug 20 13:11:58 EDT 2007
Gerardo Herzig a écrit :
> Steven Bethard wrote:
>
>> Gerardo Herzig wrote:
>>
>>
>>> Hi all. I guess i have a conceptual question:
>>> Im planing using a quite simple decorator to be used as a conditional
>>> for the execution of the function.
(snip)
>>>
>>> Something in my mind tells me that this is not the pythonic way...But
>>> i like the idea, so please tell me that im in the right way :)
>>>
>>
>> Django does it almost exactly this way:
(snip)
>
> Great! So from now on, my idea is labeled as `djangothic' :)
> Thanks a lot!
Which doesn't necessarily imply it's pythonic !-)
More information about the Python-list
mailing list