[issue7333] Add initgroups to the posix/os modules

2009-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Slightly modified and committed in r76636 (trunk) and r76637 (py3k). Thank you. -- resolution: -> fixed status: open -> closed ___ Python tracker _

[issue7333] Add initgroups to the posix/os modules

2009-12-02 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: New version attached which makes the os.rst docs the same as the docstring. Also fixes a conflict since introduced in trunk in configure.in. -- Added file: http://bugs.python.org/file15440/initgroups-5.patch __

[issue7333] Add initgroups to the posix/os modules

2009-12-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The documentation is os.rst is too laconic (coming from the Windows world, I could not understand what the function is about). The docstring is much better (at least I understand it's related to the Unix security model), I suggest to use it for the documen

[issue7333] Add initgroups to the posix/os modules

2009-11-17 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: pyflakes told me I didn't import errno in test_posix.py. Updated patch attached. -- Added file: http://bugs.python.org/file15354/initgroups-4.patch ___ Python tracker ___

[issue7333] Add initgroups to the posix/os modules

2009-11-17 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Alright. Updated patch attached. -- Added file: http://bugs.python.org/file15353/initgroups-3.patch ___ Python tracker ___ ___

[issue7333] Add initgroups to the posix/os modules

2009-11-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: You can use the new test-skipping feature: http://docs.python.org/dev/library/unittest.html#skipping-tests-and-expected-failures -- nosy: +pitrou ___ Python tracker ___

[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Good point. Updated patch attached. -- Added file: http://bugs.python.org/file15347/initgroups-2.patch ___ Python tracker ___

[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Philip Jenvey
Philip Jenvey added the comment: The test should skip when not hasattr(os, 'initgroups') since it's optional -- nosy: +pjenvey ___ Python tracker ___ ___

[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: In case anyone is concerned about licensing issues, please see -- ___ Python tracker _

[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : initgroups(2) is a function for initializing the aux group id list from site-specific configuration (typically /etc/groups, but not necessarily). Attached is a patch based on some code from Zope, expanded to have a test and some docs. Presumably Zope wi