On 7/5/2010 4:19 PM Alan Gauld said...

But for the specific case of file extensions the os.path.splitext() is
a better solution.




If, as the names suggest, the source is the file system, then I'd reach for glob.

Emile


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

Reply via email to