[Python-Dev] Extending os.chown() to accept user/group names

Dirkjan Ochtman dirkjan at ochtman.nl
Wed May 25 16:15:32 CEST 2011


On Wed, May 25, 2011 at 15:41, Barry Warsaw <barry at python.org> wrote:
> I think it would be a nice feature, and I can see the conflict.  OT1H you want
> to keep os.chown() a thin wrapper, but OTOH you'd rather not have to add a
> new, arguably more difficult to discover, function.  Given those two choices,
> I still think I'd come down on adding a new function and shutil.chown() seems
> an appropriate place for it.

Right. Please add a mention of shutil.chown() to the os.chown() docs, though.

Cheers,

Dirkjan


More information about the Python-Dev mailing list