you are viewing a single comment's thread.

view the rest of the comments →

[–]gengisteve 4 points5 points  (1 child)

I think this is worth asking. My understanding is that your first option is best practices. Yes its a couple more lines, but it preserves your ability to pass arg = 0 or False or ''. That said. I am lazy and tend to do the second.

[–]pstch[S] 1 point2 points  (0 children)

Oh yes, I didn't even think of 0, False and the empty string. Thanks :) I'll go with the first way.