On 04/06/12 01:39, Alan Gauld wrote:
for var in (a,b,c):
if not var:
print var.__name__, ' is empty or false'
Oops, that won't work. __name__ is not an attribute of object, which I thought it was... But hopefully the intention was clear. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
