[Python-ideas] More friendly access to chmod

Ram Rachum ram at rachum.com
Sat Jan 9 10:41:19 EST 2016


On Sat, Jan 9, 2016 at 5:39 PM, Steven D'Aprano <steve at pearwood.info> wrote:

> On Sat, Jan 09, 2016 at 05:13:38PM +0200, Ram Rachum wrote:
> > Hi everyone,
> >
> > What do you think about enabling a more friendly interface to chmod
> > information in Python?
>
> I think that would make an awesome tool added to your own personal
> toolbox. Once you are satisfied that it works well, then it would be
> really good to realise it to the public as a third-party library or
> recipe on ActiveState or similar.
>
> And then we can talk about whether or not it belongs in the stdlib.
>

Okay. I'm working on it now, we'll see how it goes.


>
> > And of course, I'd want that on the `pathlib` module so I could do it all
> > on the path object without referencing another module.
>
> What's wrong with referencing other modules?
>
>
>
Not wrong, just desirable to avoid. For example, I think that doing
`path.chmod(x)` is preferable to `os.chmod(path, x)`.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160109/543c3ed1/attachment-0001.html>


More information about the Python-ideas mailing list