newbie question: if var1 == var2:

David 71david at libero.it
Sat Nov 29 16:39:45 CET 2008


Il Fri, 28 Nov 2008 19:47:01 -0800 (PST), joemacbusiness at gmail.com ha
scritto:

> I dont understand why the following code never finds "tree".

New line marker to be stripped?


>     if item == var:
if item.strip() == var:

D.


More information about the Python-announce-list mailing list