Python Newbie

Chris Angelico rosuav at gmail.com
Fri Feb 22 01:32:23 CET 2013


On Fri, Feb 22, 2013 at 10:34 AM,  <piterrr.dolinski at gmail.com> wrote:
> Thanks for this. Regarding ambiguity, you will never find me write ambiguous code. I don't sabotage my own work. But the reality is that in addition to writing my own code, I have to maintain existing. I find it incredibly confusing then I see a statement along the lines of "if not something" - have to study the code in detail to see what it is testing.

It's testing something - specifically, whether or not the object wants
to "feel true" or "feel false". It's up to the object to define what
that means.

Most of the time, it's exactly what you want. When it isn't, you can
put an exact comparison.

ChrisA



More information about the Python-list mailing list