A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-November/136922.html below:

[Python-Dev] Improvements for Pathlib

[Python-Dev] Improvements for Pathlib [Python-Dev] Improvements for PathlibCameron Simpson cs at zip.com.au
Sun Nov 9 04:18:23 CET 2014
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.
More information about the Python-Dev mailing list

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