Patrick Down wrote: > What about: > > if True in [thefile.endswith(x) for x in > ('mp3','mp4','ogg','aac','wma')]:
That will catch (widely used) file names such as 'tmp3' or 'i_cant_spell_frogg'. ;) -- http://mail.python.org/mailman/listinfo/python-list