Chris Angelico <ros...@gmail.com> writes: >> if len(fs) == 0: ... # didn't get a filename > Bikeshedding: That could be written as simply "if not fs". :)
Yeah, in that instance you could do that. It's an unsafe practice when None is used as the no-value marker, since the empty string is a perfectly good string and also converts to boolean false. -- https://mail.python.org/mailman/listinfo/python-list