Thanks Imri,
There's one thing that slipped my mind during the presentation - If
you'd like to hone your skills and didn't hear about already, take the
Python Challenge:
http://www.pythonchallenge.com/
Cheers
--
Meir
Hi
I uploaded the presentation slides, and they are available at
http://www.algorithm.co.il/blogs/index.php/programming/python/pyweb-il-presentation-advanced-subjects-in-python/
I hope you enjoyed my presentation and that it was useful for you.
Well, unfortunately I could not come this time as well - so thanks for uploading the slides.
Seems like a good selection of topics, also good links for further information (hope I get the time to check them out).
One point btw: In the slide about closures, you refer to the "caller's variables", which is misleading - the closure actually refers to its *enclosing* (or "defining") function's variables. Often this is not the function which actually calls it (as can be seen even in your example).
p.s.p.s. - actually in this kind of talk I would have probably preferred to include another topic or extend more about some already included one than discuss closures. This is because it seems to me that programmers usually can write such code and guess on their own what it does, even if they never stopped to think about how it actually works (it is the implementation that is interesting here, and the general issue of lexical scopes, rather than the practical uses).
On Wed, Oct 28, 2009 at 10:30 PM, Amit Aronovitch <arono...@gmail.com> wrote:
Well, unfortunately I could not come this time as well - so thanks for uploading the slides.
You're welcome!
Seems like a good selection of topics, also good links for further information (hope I get the time to check them out).
One point btw: In the slide about closures, you refer to the "caller's variables", which is misleading - the closure actually refers to its *enclosing* (or "defining") function's variables. Often this is not the function which actually calls it (as can be seen even in your example).
You are correct. I meant what you said, and didn't write it correctly. I fixed it now and uploaded a new version, thanks!
p.s.p.s. - actually in this kind of talk I would have probably preferred to include another topic or extend more about some already included one than discuss closures. This is because it seems to me that programmers usually can write such code and guess on their own what it does, even if they never stopped to think about how it actually works (it is the implementation that is interesting here, and the general issue of lexical scopes, rather than the practical uses).
I partially disagree. I don't think it's important to understand closures in depth for the scope of this presentation. I do think it's important to know of them to better understand decorators. Since decorators are something I definitely wanted to include, I added a slide about closures.
During the actual presentation at pywebil, I pretty much skimmed this subject, made sure people understood the point, and continued to decorators, the actual practical use.
Other uses of closures are of course possible, but less important.
Cheers,