Re: chmod directories recursively

2007-07-17 Thread Jennifer Thacher
Fabian Steiner wrote: > Hello! > > As far as I can see os.chmod() doesn't adjust permissions on directories > recusively. Is there any other possibility to achieve this aim except for > calling os.system('chmod -R /dir') directly? > > Thanks, > Fabian Check out os.path.walk. James -- http://ma

Re: Lists in classes

2007-07-12 Thread Jennifer Thacher
Jeremy Lynch wrote: > Hello, > > Learning python from a c++ background. Very confused about this: > > > class jeremy: > list=[] > def additem(self): > self.list.append("hi") > return > > temp = jeremy() > temp.additem() > temp.additem(