On Nov 26, 12:31 am, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote: > Is this what you want? > > ofiles = [open(x) for x in os.listdir(os.getcwd())]
'open' returns a "file object", whereas the OP is after "file descriptors", which are returned by 'os.open'. -- http://mail.python.org/mailman/listinfo/python-list