Is this a legal / acceptable statement ?
vbgunz at gmail.com
Fri May 5 16:03:45 CEST 2006
you don't have to say:
if True == l_init
it is suggested you simply say:
Remember the and operator requires expressions on both sides to be true
to continue. If you notice, your expression on the right side of the
'and' is an assignment and so this is forbidden (SyntaxError).
assignments only work on lines by themselves and no where else.
if you meant == rather than = remember this, l_value doesn't exist and
would pull up a NameError *but* because the first expression evaluates
as false the second expression is never evaluated.
refactor your code ASAP. good luck!
More information about the Python-list