Re: Removing objects in a list via a wild card

2007-09-19 Thread Karthik Gurusamy
On Sep 19, 1:11 pm, David <[EMAIL PROTECTED]> wrote: > On 9/19/07, James Matthews <[EMAIL PROTECTED]> wrote: > > > Hi List > > > I have a list of files from my current directory: > > > import os > > > files = os.listdir(os.getcwd()) > > > Now this list also includes some files that i don't want lik

Re: Removing objects in a list via a wild card

2007-09-19 Thread David
On 9/19/07, James Matthews <[EMAIL PROTECTED]> wrote: > Hi List > > I have a list of files from my current directory: > > import os > > files = os.listdir(os.getcwd()) > > Now this list also includes some files that i don't want like my python > files... How would i remove them You can use regular

Removing objects in a list via a wild card

2007-09-19 Thread James Matthews
Hi List I have a list of files from my current directory: import os files = os.listdir(os.getcwd()) Now this list also includes some files that i don't want like my python files... How would i remove them Thanks James -- http://www.goldwatches.com/ http://www.jewelerslounge.com -- http://ma