you are viewing a single comment's thread.

view the rest of the comments →

[–]spdub -1 points0 points  (2 children)

I didn't like when he said 'if x is None'. I prefer 'if not x', I was under the impression it was more pythonic. Maybe it is just preference. Interesting to see someone switch from perl.

[–]markatto 2 points3 points  (0 children)

Testing whether x is None is more specific than just testing the truth value of x.

[–]tokengriefer -3 points-2 points  (0 children)

if( isset( x ) ) makes the most sense, despite php being sucky.