Drew,

Just picking up on one item:


On 07/19/10 18:40, Drew Fisher wrote:

- tests for None can be done with

    if not variable:

  instead of

    if variable == None:

  and likewise for not None.


I have always heard that the recommended way to do this is:

   if variable is None:

   (or if variable is not None:)


Is your suggestion:

   if not variable:

the preferred PEP8 way?  Wouldn't that also evaluate to true if variable
had a value of False, rather than None?


- Dermot


_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to