closure = decorator?

Tim jtim.arnold at gmail.com
Mon Oct 14 12:39:20 EDT 2013


On Saturday, October 12, 2013 4:54:34 PM UTC-4, Peter Cacioppi wrote:
> On Thursday, October 10, 2013 6:51:21 AM UTC-7, Tim wrote:
> 
> > I've read a couple of articles about this, but still not sure.
> > When someone talks about a closure in another language (I'm learning Lua on the side), is that the same concept as a decorator in Python?
>
> > It sure looks like it.
> > 

Thanks everyone for discussing. I see that closures are completely different from decorators and now I'm not really sure how I got them confused in the first place.

I will have to stare at the replies for a while before I can say I really 'get' closures. thanks,
--Tim



More information about the Python-list mailing list