New submission from Jean-Paul Calderone <exar...@divmod.com>: 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 will be happy to use this function from the stdlib once they can depend on a version of Python which includes it. Twisted would like to as well. I wasn't able to test the autoconf related parts of the patch as I don't have easy access to autoconf 2.61. I also can't run regrtest.py in my environment for some reason. It fails to import some names from test_support. So I didn't run the unit test that I added, either. ---------- components: Library (Lib) files: initgroups.patch keywords: patch messages: 95348 nosy: exarkun severity: normal status: open title: Add initgroups to the posix/os modules versions: Python 2.7 Added file: http://bugs.python.org/file15345/initgroups.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7333> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com