Re: Simple Function Decorator Sample Snippet

2014-05-13 Thread alister
On Tue, 13 May 2014 01:04:39 -0500, Mark H Harris wrote: > Yes, because depending on your interface the code can get mangled (the > indentation thing breaks). the quoted paste seems to avoid this mostly > with the downside that the quote characters need to be striped from the > py file. by th

Re: Simple Function Decorator Sample Snippet

2014-05-12 Thread Mark H Harris
On 5/13/14 12:54 AM, Steven D'Aprano wrote: I don't think that this idea is original to you :-) I'm pretty sure many people have come up with the idea of a decorator that just announces when it runs and when it is called. I know I have :-) oh, absolutely... every piece of that thing comes f

Re: Simple Function Decorator Sample Snippet

2014-05-12 Thread Steven D'Aprano
On Mon, 12 May 2014 23:41:18 -0500, Mark H Harris wrote: > hi folks, I've come up with a simple snippet I don't think that this idea is original to you :-) I'm pretty sure many people have come up with the idea of a decorator that just announces when it runs and when it is called. I know I hav

Simple Function Decorator Sample Snippet

2014-05-12 Thread Mark H Harris
hi folks, I've come up with a simple snippet that intends to explain the concept of decorations without an article (for on app help), while being succinct and concise, while not being overly complicated. Does this work? I have another one coming for args, similar, if this works... comments