[issue25625] "chdir" Contex manager for pathlib

2021-11-14 Thread Cameron Simpson
Cameron Simpson added the comment: On 15Nov2021 01:04, Python Bug Reports wrote: >Can you share the link? I haven't seen anything recent. Is it under >other thread? It's in the discuss-ideas part of discuss.python.org during a discussions about a possible new context manager to atomically p

[issue25625] "chdir" Contex manager for pathlib

2021-11-14 Thread Filipe Laíns
Filipe Laíns added the comment: Can you share the link? I haven't seen anything recent. Is it under other thread? -- ___ Python tracker ___ ___

[issue25625] "chdir" Contex manager for pathlib

2021-11-14 Thread Éric Araujo
Éric Araujo added the comment: There is renewed discussion on python-dev about placing this in contextlib. -- nosy: +eric.araujo ___ Python tracker ___

[issue25625] "chdir" Contex manager for pathlib

2021-10-20 Thread desbma
Change by desbma : -- nosy: -desbma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue25625] "chdir" Contex manager for pathlib

2021-10-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset a774285e7d3e63c24dbaaee0b0d9e59ded5c49bf by Thomas Grainger in branch 'main': bpo-25625: [doc] fix async/aync typo (GH-29091) https://github.com/python/cpython/commit/a774285e7d3e63c24dbaaee0b0d9e59ded5c49bf -- __

[issue25625] "chdir" Contex manager for pathlib

2021-10-20 Thread Thomas Grainger
Change by Thomas Grainger : -- nosy: +graingert nosy_count: 10.0 -> 11.0 pull_requests: +27360 pull_request: https://github.com/python/cpython/pull/29091 ___ Python tracker ___

[issue25625] "chdir" Contex manager for pathlib

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for perservering, Filipe! ✨ 🍰 ✨ Per Steering Council decision, the context manager is approved: https://github.com/python/steering-council/issues/77 -- resolution: rejected -> fixed versions: +Python 3.11 -Python 3.9 ___

[issue25625] "chdir" Contex manager for pathlib

2021-10-19 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3592980f9122ab0d9ed93711347742d110b749c2 by Filipe Laíns in branch 'main': bpo-25625: add contextlib.chdir (GH-28271) https://github.com/python/cpython/commit/3592980f9122ab0d9ed93711347742d110b749c2 -- nosy: +lukasz.langa __

[issue25625] "chdir" Contex manager for pathlib

2021-09-15 Thread Cameron Simpson
Change by Cameron Simpson : -- nosy: +cameron ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue25625] "chdir" Contex manager for pathlib

2021-09-10 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +26691 pull_request: https://github.com/python/cpython/pull/28271 ___ Python tracker ___ _

[issue25625] "chdir" Contex manager for pathlib

2021-05-20 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue25625] "chdir" Contex manager for pathlib

2021-03-15 Thread 4-launchpad-kalvdans-no-ip-org
Change by 4-launchpad-kalvdans-no-ip-org : -- nosy: +4-launchpad-kalvdans-no-ip-org ___ Python tracker ___ ___ Python-bugs-list mail

[issue25625] "chdir" Contex manager for pathlib

2020-05-02 Thread gaborbernat
gaborbernat added the comment: So moving way from subprocess.Process; what about having this for other use cases? I know there is no thread-safe way to get this working, given it's a process state variable. However, can we have it as a non-thread-safe feature? -- nosy: +gaborbernat v

Re: [issue25625] "chdir" Contex manager for pathlib

2015-11-27 Thread Stephane Wirtel
What's the relation with subprocess ? -- Stéphane Wirtel - http://wirtel.be - @matrixise ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue25625] "chdir" Contex manager for pathlib

2015-11-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: > In the context of subprocesses there is better way to run a program in > specified working directory that temporary change current working directory > in parent process. Ok, haven't read the last line of the description. thanks for the clarification. -- St

[issue25625] "chdir" Contex manager for pathlib

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > What's the relation with subprocess.Popen ? In the context of subprocesses there is better way to run a program in specified working directory that temporary change current working directory in parent process. -- _

[issue25625] "chdir" Contex manager for pathlib

2015-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree with desbma. -- nosy: +serhiy.storchaka resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue25625] "chdir" Contex manager for pathlib

2015-11-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: What's the relation with subprocess.Popen ? -- nosy: +matrixise ___ Python tracker ___ ___ Python-b

[issue25625] "chdir" Contex manager for pathlib

2015-11-14 Thread Jáchym Barvínek
Jáchym Barvínek added the comment: I did not know about cwd for Popen. It seems like the better way to go. Thank you. 2015-11-14 19:58 GMT+01:00 desbma : > > desbma added the comment: > > I'm not a Python core developer, but a few thoughts: > * this is not thread safe > * subprocess.Popen alrea

[issue25625] "chdir" Contex manager for pathlib

2015-11-14 Thread desbma
desbma added the comment: I'm not a Python core developer, but a few thoughts: * this is not thread safe * subprocess.Popen already has a cwd parameter for similar purpose -- nosy: +desbma ___ Python tracker __

[issue25625] "chdir" Contex manager for pathlib

2015-11-14 Thread SilentGhost
Changes by SilentGhost : -- nosy: +pitrou versions: +Python 3.6 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue25625] "chdir" Contex manager for pathlib

2015-11-14 Thread Jáchym Barvínek
New submission from Jáchym Barvínek: I use this context manager in my code: @contextmanager def in_directory(path): pwd = str(Path().absolute()) if not path.is_dir(): path = path.parent os.chdir(str(path)) yield path.absolute() os.chdir(pwd) I thought it would be nic