Re: Compairing filenames in a list

2012-09-30 Thread Joshua Landau
On 30 September 2012 23:08, Arnaud Delobelle wrote: > On 30 September 2012 02:27, Kevin Anthony > wrote: > > I have a list of filenames, and i need to find files with the same name, > > different extensions, and split that into tuples. does anyone have any > > suggestions on an easy way to do t

Re: Compairing filenames in a list

2012-09-30 Thread Arnaud Delobelle
On 30 September 2012 02:27, Kevin Anthony wrote: > I have a list of filenames, and i need to find files with the same name, > different extensions, and split that into tuples. does anyone have any > suggestions on an easy way to do this that isn't O(n^2)? >>> import os, itertools >>> filenames =

Re: Compairing filenames in a list

2012-09-29 Thread Dave Angel
On 09/29/2012 09:27 PM, Kevin Anthony wrote: > I have a list of filenames, and i need to find files with the same > name, different extensions, and split that into tuples. does anyone have > any suggestions on an easy way to do this that isn't O(n^2)? > > Sure, collect them in a collections.defau

Compairing filenames in a list

2012-09-29 Thread Kevin Anthony
I have a list of filenames, and i need to find files with the same name, different extensions, and split that into tuples. does anyone have any suggestions on an easy way to do this that isn't O(n^2)? -- Thanks Kevin Anthony www.NoSideRacing.com Do you use Banshee? Download the Community Extens