Matthew Fitzgibbons wrote:
'if x' strikes me as better for this case because you might want to accept a non-empty list (or some other objects) but reject non-empty lists. 'if x is None' would not work. It still may be susceptible to the empty iterator problem, depending on what prep_func does.

I mean reject empty lists. I need to be slower on hitting send.

-Matt
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to