On 08Nov2014 17:46, Ionel Cristian Mărieș <contact at ionelmc.ro> wrote: >#2. A context manager for changing working directory (that switches to the >old cwd on exit). Eg: > >with path.cd(): > assert os.getcwd() == path As elsewhere remarked, the current working directory is process global state. Changing it can easily have unwanted (and invisible until breakage becomes glaring) side effects. -1 on this element from me I'm afraid. Cheers, Cameron Simpson <cs at zip.com.au> I couldn't think of anything else to do with it, so I put it on the web.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4