Re: [Tutor] improvements on a renaming script

2014-03-10 Thread Pavan Rikhi
On Sun, Mar 09, 2014 at 03:22:35PM -0400, street.swee...@mailworks.org wrote: > - In the get_long_names() function, the for/if thing is reading > the whole fileNames.tab file every time, isn't it? In reality, > the file was only a few dozen lines long, so I suppose it doesn't > matter, but is ther

Re: [Tutor] improvements on a renaming script

2014-03-10 Thread Cameron Simpson
On 09Mar2014 22:50, bob gailer wrote: > Beware using tabs as indents. As rendered by Thunderbird they appear > as 8 spaces which is IMHO overkill. > It is much better to use spaces. Most Python IDEs have an option to > convert tabs to spaces. Further to this remark, this isn't an instruction to n

Re: [Tutor] improvements on a renaming script

2014-03-10 Thread Cameron Simpson
On 09Mar2014 15:22, street.swee...@mailworks.org wrote: > A bit of background, I had some slides scanned and a 3-character > slice of the file name indicates what roll of film it was. > This is recorded in a tab-separated file called fileNames.tab. > Its content looks something like: > > p01

Re: [Tutor] improvements on a renaming script

2014-03-09 Thread bob gailer
On 3/9/2014 3:22 PM, street.swee...@mailworks.org wrote: Hello all, A bit of background, I had some slides scanned and a 3-character slice of the file name indicates what roll of film it was. This is recorded in a tab-separated file called fileNames.tab. Its content looks something like: p01

[Tutor] improvements on a renaming script

2014-03-09 Thread street . sweeper
Hello all, A bit of background, I had some slides scanned and a 3-character slice of the file name indicates what roll of film it was. This is recorded in a tab-separated file called fileNames.tab. Its content looks something like: p01 200511_autumn_leaves p02 200603_apple_plum_cherry_blo