[Tutor] Help return a pattern from list

Emile van Sebille emile at fenx.com
Tue Jul 6 02:46:24 CEST 2010


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




More information about the Tutor mailing list