On Sat, Jan 9, 2016 at 5:39 PM, Steven D'Aprano <steve@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)`.