Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #13070
| From | "Waldek M." <wm@localhost.localdomain> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: what's the command for (cd ..) in python |
| Date | 2011-09-10 15:57 +0200 |
| Organization | Mojito.pl |
| Message-ID | <5yll66t4xv3j.dlg@localhost.localdomain> (permalink) |
| References | <mailman.903.1315570033.27778.python-list@python.org> <4e6a0e8e$0$29967$c3e8da3$5496439d@news.astraweb.com> <eeimd1h6ntq0$.dlg@localhost.localdomain> <4e6b45e6$0$29970$c3e8da3$5496439d@news.astraweb.com> |
On Sat, 10 Sep 2011 21:11:32 +1000, Steven D'Aprano wrote: > The main one that comes to mind is os.walk, which has this to say: > > Caution: if you pass a relative pathname for top, don't change the > current working directory between resumptions of walk. walk never > changes the current directory, and assumes that the client doesn't > either. > > Seems like a reasonable assumption to me. Oh, that kind of functions. Yes, that *is* surely reasonable, just as mixing chdir/mkdir/remove and whatever else that affects the directory structure is not a good idea, or at least something to be done carefully. I just wouldn't think to give it some special credit. Thanks Waldek
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
what's the command for (cd ..) in python kaustubh joshi <kandrjoshi@gmail.com> - 2011-09-09 14:07 +0200
Re: what's the command for (cd ..) in python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-09 23:03 +1000
Re: what's the command for (cd ..) in python Terry Reedy <tjreedy@udel.edu> - 2011-09-09 13:35 -0400
Re: what's the command for (cd ..) in python "Waldek M." <wm@localhost.localdomain> - 2011-09-10 12:32 +0200
Re: what's the command for (cd ..) in python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-10 21:11 +1000
Re: what's the command for (cd ..) in python "Waldek M." <wm@localhost.localdomain> - 2011-09-10 15:57 +0200
Re: what's the command for (cd ..) in python Cameron Simpson <cs@zip.com.au> - 2011-09-11 09:50 +1000
csiph-web