[issue20779] Add pathlib.chown method

2022-02-08 Thread Jaspar S.


Change by Jaspar S. :


--
pull_requests: +29382
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31212

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20779] Add pathlib.chown method

2022-02-07 Thread Jaspar S.


Jaspar S.  added the comment:

I would love to use chown for a pathlib Path, too.

It may not be used often, but if anyone want's to change all the os references 
from a file, it would be cool to have it on pathlib!

--
nosy: +y0urself

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20779] Add pathlib.chown method

2021-08-27 Thread sedrubal


Change by sedrubal :


--
nosy: +sedrubal

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20779] Add pathlib.chown method

2021-08-01 Thread Emmanuel Arias


Change by Emmanuel Arias :


--
versions: +Python 3.11 -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20779] Add pathlib.chown method

2021-08-01 Thread Emmanuel Arias


Emmanuel Arias  added the comment:

Hello!

I also use it frequently, but looking this issue I can agree with pitrou that 
there aren't  lot of people that use chown.

If I'm not wrong, there's a trend to move os to pathlib, perhaps chown should 
be in pathlib too :)

I can work on this.

--
nosy: +eamanu

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20779] Add pathlib.chown method

2021-06-28 Thread Tom Cook


Tom Cook  added the comment:

+1 this.

I have a program that opens a UNIX socket as root for other processes to 
communicate with it.  I need to set the permissions to 0o775 and set the owner 
gid to a specific group so that members of that group can communicate with the 
process.  It's annoying to have to drop back to `os.chown(str(path), ...)` for 
this.

--
nosy: +Tom Cook

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20779] Add pathlib.chown method

2014-08-15 Thread Chris Rebert

Changes by Chris Rebert pyb...@rebertia.com:


--
nosy: +cvrebert

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20779
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20779] Add pathlib.chown method

2014-02-28 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Well, I don't know yet, but if we ever want chown() in pathlib, I think it 
should be higher-level and accept symbolic uids as well.

--
nosy: +neologix

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20779
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20779] Add pathlib.chown method

2014-02-27 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I don't know about philosophical reasons ;-), but I don't think chown is very 
often used. Do you know of a context where it is?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20779
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20779] Add pathlib.chown method

2014-02-27 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Pragmatic reasons:

I use chown moderately often. Usually as root, I want to change the uid of the 
files after generating a bunch of files. But I almost never changed gid.

I am in two mind whether I should add lchown as well or not (just like lchmod) 
and make the signature of pathlib.chown same as os.chown (with third parameter, 
follow_symbolic_links).

If you close this as won't fix, I will not hold grudge against you, though. ;)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20779
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20779] Add pathlib.chown method

2014-02-26 Thread Vajrasky Kok

New submission from Vajrasky Kok:

For pragmatic and philosophical reasons, I would argue that we should add chown 
to pathlib library.

--
components: Library (Lib)
files: add_chown_to_pathlib.patch
keywords: patch
messages: 212245
nosy: pitrou, vajrasky
priority: normal
severity: normal
status: open
title: Add pathlib.chown method
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file34227/add_chown_to_pathlib.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20779
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com