order of test

William Dode wilk-spamout at flibuste.net
Mon Jul 29 03:59:51 EDT 2002


hi,

can we be sure of the order of a test expression ?
i mean that
t=["one","two"]
x=10
if x<2 and t[x]=="oups":

will never throw an exception if t[2] will be tested before x<2

thanks

-- 
William Dodé - flibuste.net
http://wikipython.tuxfamily.org



More information about the Python-list mailing list