Re: A question on the creation of list of lists

2015-04-27 Thread alex23
On 23/04/2015 2:18 AM, subhabrata.bane...@gmail.com wrote: I have a list of file names of a directory, I want to read each one of them. After reading each one of them, I want to put the results of each file in a list. These lists would again be inserted to create a list of lists. While there's

Re: A question on the creation of list of lists

2015-04-23 Thread Chris Angelico
On Fri, Apr 24, 2015 at 12:12 AM, Dave Angel wrote: > On 04/23/2015 08:36 AM, Gregory Ewing wrote: >> >> Jean-Michel Pichavant wrote: From: "subhabrata banerji" list_of_files = glob.glob('C:\Python27\*.*') >> >> > >>> >>> 1/ Your file pattern search will not get files that do

Re: A question on the creation of list of lists

2015-04-23 Thread Dave Angel
On 04/23/2015 08:36 AM, Gregory Ewing wrote: Jean-Michel Pichavant wrote: From: "subhabrata banerji" list_of_files = glob.glob('C:\Python27\*.*') > 1/ Your file pattern search will not get files that do not have any dot in their name Actually, on Windows, it will. (This is for compatibili

Re: A question on the creation of list of lists

2015-04-23 Thread Gregory Ewing
Jean-Michel Pichavant wrote: From: "subhabrata banerji" list_of_files = glob.glob('C:\Python27\*.*') > 1/ Your file pattern search will not get files that do not have any dot in their name Actually, on Windows, it will. (This is for compatibility with MS-DOS 8.3 filenames, where the dot was

Re: A question on the creation of list of lists

2015-04-22 Thread subhabrata . banerji
On Wednesday, April 22, 2015 at 9:48:44 PM UTC+5:30, subhabrat...@gmail.com wrote: > Dear Group, > > I am trying to open a bunch of files from a directory and trying to put the > results in list of lists that is to say, > > that is to say, > I have a list of file names of a directory, I want t

Re: A question on the creation of list of lists

2015-04-22 Thread Jean-Michel Pichavant
- Original Message - > From: "subhabrata banerji" > To: python-list@python.org > Sent: Wednesday, 22 April, 2015 6:18:30 PM > Subject: A question on the creation of list of lists > > Dear Group, > > I am trying to open a bunch of files from a directory

Re: A question on the creation of list of lists

2015-04-22 Thread Chris Kaynor
On Wed, Apr 22, 2015 at 9:18 AM, wrote: > Dear Group, > > I am trying to open a bunch of files from a directory and trying to put > the results in list of lists that is to say, > > that is to say, > I have a list of file names of a directory, I want to read each one of > them. > After reading eac

A question on the creation of list of lists

2015-04-22 Thread subhabrata . banerji
Dear Group, I am trying to open a bunch of files from a directory and trying to put the results in list of lists that is to say, that is to say, I have a list of file names of a directory, I want to read each one of them. After reading each one of them, I want to put the results of each file i