Re: [Tutor] Postgresql+Python -tutorial?

2006-02-11 Thread Alan Gauld
> Alan G wrote: >> Is there some advantage to Postgres over MySql? > > Yes and no. Postgresql offers more features and is IMO more flexible > than most SQL servers out there. Thanks for the list, several things I didn't know. > Example: postgresql enables you to set up editable sql views. Mos

Re: [Tutor] Postgresql+Python -tutorial?

2006-02-11 Thread Python
On Sat, 2006-02-11 at 16:19 +1000, Joal Heagney wrote: > > I'm curious. Why? > > Is there some advantage to Postgres over MySql? > > Yes and no. Postgresql offers more features and is IMO more flexible > than most SQL servers out there. A friend described MySQL as the RDBMS for people who do not

Re: [Tutor] Change files

2006-02-11 Thread David Holland
Bruce, Thanks but is was not the solution.  It goes through all the directories but does not seem to work. Here is the modified code :- def getfiles(file1,file2,top):     for root, dirs, files in os.walk(top):     for name in dirs:     print name     for name in files:

Re: [Tutor] Change files

2006-02-11 Thread Danny Yoo
> for root, dirs, files in os.walk(top): > for name in dirs: > print name > for name in files: This code looks suspicious. At this point, when we say "name", what do we expect to get here? Do you mean the directory name, or the file name? It can't be both!