Allow multiline conditions and the like

alex23 wuwei23 at gmail.com
Mon Nov 1 22:00:00 EDT 2010


Chris Rebert <c... at rebertia.com> wrote:
> Or, if possible, refactor the conditional into a function (call) so
> it's no longer multiline in the first place.

Or even simpler, assign the condition result to a variable:

a_b_positive = a > 0 and b > 0
if a_b_positive:
  ...




More information about the Python-list mailing list