Stan Cook wrote: > I was trying to take a list of files in a directory and remove all but the ".dbf" files. Assuming the variable "files" is the list of files: files = [fname for fname in files if fname.endswith('.dbf')]