"David Kim" <davidki...@gmail.com> wrote

> The code can be found at pastebin:
> http://financialpython.pastebin.com/f4efd8930

Nothing to do with the parsing but I noticed:

def get_files(path): 
      ''' Get a list of all files in a given directory. 
          Returns a list of filename strings. ''' 
      files = os.listdir(path) 
      return files 

Since you are just returning the result of listdir you 
could achieve the same effect by simply aliasing listdir:

get_files = os.listdir


Much less typing!


HTH,


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to