Alexander Belopolsky <alexander.belopol...@gmail.com> added the comment:
On Sun, Feb 21, 2010 at 1:58 PM, Martin v. Löwis <rep...@bugs.python.org> wrote: .. > I would propose a different strategy: if _SC_NGROUPS_MAX is defined, use > that to find out how much memory to allocate, otherwise, fall back to > the current max array size. Can you find out whether doing so would also > fix the issue at hand? I am afraid that the following is the evidence that it won't: Python 2.7a3+ (trunk:78265M, Feb 20 2010, 15:20:36) [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.sysconf('SC_NGROUPS_MAX') 16 >>> len(os.getgroups()) # with the patch 22 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7900> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com