[Python-ideas] chdir context manager

Calvin Spealman ironfroggy at gmail.com
Sat Jan 19 16:27:56 CET 2013


-1 from me, as well. Encouraging a bad habit.


On Sat, Jan 19, 2013 at 9:57 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:

> -1 from me
>
> I consider caring about the current directory to be an anti-pattern -
> paths should be converted to absolute ASAP, and for invocation of
> other tools that care about the current directory, that's why the
> subprocess APIs accept a "cwd" argument. I certainly don't want to
> encourage people to unnecessarily rely on global state by providing a
> standard library context manager that makes it easier to do so.
>
> Regards,
> Nick.
>
> --
> Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>



-- 
Read my blog! I depend on your acceptance of my opinion! I am interesting!
http://techblog.ironfroggy.com/
Follow me if you're into that sort of thing:
http://www.twitter.com/ironfroggy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130119/1d5622d1/attachment.html>


More information about the Python-ideas mailing list