Slides for my presentation, "Advanced Python Subjects"

5 views
Skip to first unread message

Imri Goldberg

unread,
Oct 27, 2009, 3:49:00 PM10/27/09
to pyweb-il
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.

Cheers,
Imri

--
Imri Goldberg
--------------------------------------
http://plnnr.com/ - automatic trip planning
http://www.algorithm.co.il/blogs/
--------------------------------------
-- insert signature here ----

Meir Kriheli

unread,
Oct 27, 2009, 8:02:16 PM10/27/09
to pywe...@googlegroups.com
On 10/27/2009 09:49 PM, Imri Goldberg wrote:
> 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.
>
> Cheers,
> Imri
>

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

Yo'av Moshe

unread,
Oct 28, 2009, 8:31:41 AM10/28/09
to pywe...@googlegroups.com

Thank you, there's great information there!

Yo'av
2009/10/27 Imri Goldberg <lorg...@gmail.com>



--
Yo'av Moshe

Amit Aronovitch

unread,
Oct 28, 2009, 4:30:19 PM10/28/09
to pywe...@googlegroups.com

On Tue, Oct 27, 2009 at 9:49 PM, Imri Goldberg <lorg...@gmail.com> wrote:
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).

thanks,
    Amit

Imri Goldberg

unread,
Oct 28, 2009, 4:40:11 PM10/28/09
to pywe...@googlegroups.com
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,
Imri

Amit Aronovitch

unread,
Oct 28, 2009, 5:28:41 PM10/28/09
to pywe...@googlegroups.com
On Wed, Oct 28, 2009 at 10:40 PM, Imri Goldberg <lorg...@gmail.com> wrote:
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!

That's a quick response. kudos :-)

 
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.

I see. Seems like I missed the meaning of the cryptic "what is it good for" line ...
(Still, your slides are quite understandable stand-alone, which is good. I wouldn't expect anyone to understand anything form one of my own typical presentations without attending the talk ;-) ).

Other uses of closures are of course possible, but less important.
 

Well, for those of us that had used map+lambda a lot in python1.x (pre- PEP227 days...), scopes and closures might always bring to mind lambda functions ( i.e. avoid need for defining/passing dummy default arguments like so:
"map(lambda x,offset=offset: x+offset, my_list)"   :-)
Of course, introduction of list comprehension in 2.0 also made that usage of closures far less common...


Cheers,

Salute,
     Amit

Reply all
Reply to author
Forward
0 new messages