need help translating a PHP for statement to python

Paul Rubin http
Mon Jan 12 14:14:38 CET 2004


Dang Griffith <noemail at noemail4u.com> writes:
> >Haha ... you must be originally a perl coder. Who else writes attricious
> >code like this
> >    if ($bar = (($x_ar[$x] -= $prd + $bar) < 0))
> 
> Any C programmer worth his salt.  I miss those days.  Sort of.


But that line almost certainly has the parentheses in the wrong place.
Look carefully.



More information about the Python-list mailing list