Re: [Tutor] Writing decorators?

2016-07-05 Thread Alan G via Tutor
Sorry for top posting, but yes excepting you don't need the parens after log in the @log line. Sent from my Fonepad Alex Hall wrote: Okay, I think I follow. So a decorator to log that a function ran might be: import utils @log() def run(): ** #do things #util

[Tutor] Fwd: Re: How do I display a picture?

2017-05-17 Thread Alan G via Tutor
Please always use reply all, or reply list when responding to list messages. I think eryksun may have already answered your question, if not give more info about how you run your code. Original Message Subject: Re: [Tutor] How do I display a picture? From: Micha