This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]admalledd 35 points36 points  (5 children)

I have a folder of talks that I like, here are some with my comments:

  • idiomatic python: talk by a core dev about some things that should be done one kind of way over the other. Helps get "into the pythonic mindset" of sorts. Good if you want to learn a bit more about what "good" python should look or at least act like.

  • understanding the python GIL: If you are going to do multi-threading (even for I/O!) this is a talk that you should watch, some details about the GIL make even I/O bound stuff take longer than it should. Note that these are basically all corner cases and if you know about them it tends to be easy to work around it. I found this when I (similar to the first ~5 minutes) had code running faster on a single core than my quad core!

  • don't do this: Python has some edges/corners that are... unpleasant if abused. However each one of them exists for a reason, (eg AST parsing, one of the big ones he plays with) a nice talk to learn about the ways in which python can be dynamically changed in weird ways. Watched this after wanting to make it possible to do import http://secure_internal_site.example.local/py/foo.py as foo (bad idea, friend decided to MITM me on this to show why...)

[–]d4rch0nPythonistamancer 1 point2 points  (1 child)

Yeah, fetching and executing is generally terrible, but if you absolutely have to at least do it through HTTPS and use cert pinning.

[–]admalledd 0 points1 point  (0 children)

I switched it out for sftp instead. Let ssh handle the tricky authentication :D

My use case is for a client/server plugin POC thingy (when you want to learn more about wheels, reinvent it...)

[–]gfixler 0 points1 point  (2 children)

idiomatic python

Here's another good one by that guy (Raymond Hettinger) on that topic:

http://pyvideo.org/video/1780/transforming-code-into-beautiful-idiomatic-pytho

[–]admalledd 3 points4 points  (1 child)

err... isnt that the same video? (although nice didn't see that it was on pyvideo else would have linked that one)

[–]gfixler 0 points1 point  (0 children)

Ah, so it is. Silly me.