On Fri, May 6, 2011 at 4:36 PM, Jabba Laci <jabba.l...@gmail.com> wrote: > If I want to check if a list is empty, which is the more pythonic way?
[...] > (2) if not li: This is fine. cheers James -- -- James Mills -- -- "Problems are solved by method" -- http://mail.python.org/mailman/listinfo/python-list