I've started writing what will (hopefully) be a series of articles about common pitfalls in Python programming. Originally I was going to call it "Things (Not) to do When Visiting Python", but shortened that to "The Python Tourist". "Tourist" being appropriate since I move around a lot between languages, and tend to forgot all those little "gotchas" while I'm away. I'll probably do one for PHP and maybe Javascript, as I start to learn more about those. If someone has already patented "The [whatever] Tourist" for a title, leave a comment and I'll try to think of something else.
First article: Passing Mutable Objects as Default Args
Incidentally, there are several other similar lists out there already, "Python Warts", etc. I'm just documenting the ones that I tend to screw up, for my own quick reference.

Comments
Great stuff, but with no
Great stuff, but with no RSS/Atom feed, it will be a PITA to keep on top of new installments.
One feed for now
For now there is just the RSS/Atom from the main page, but I might add a separate feed for the series if I keep it going long enough.
[...] Over at boodebr.org,
[...] Over at boodebr.org, there’s a new series called “The Python Tourist”. It’s meant to be a series that highlights programming pitfalls in Python and from the first installment, “Passing Mutable Objects as Default Args”, it looks to be interesting. [...]
Cool. Great article! Looking
Cool. Great article! Looking forward to more installments...
The Python Tourist...
The Python Tourist... Over at boodebr.org, there’s a new series called “The Python Tourist”. It’s meant to be a series that highlights programming pitfalls in Python and from the first installment, “Passing Mutable Objects as Default Args”...
import this. » Blog Archive » The Python tourist
[...] There’s a new series at boodebr.org called The Python Tourist. It aims to give news users some tips to avoid common pitfalls in Python programming, similar in some ways (sort of) to Python Warts. [...]
Post new comment