[issue9344] please add posix.getgrouplist()

2011-06-16 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Actually, when it is a feature request rather than a bug fix we usually use 
'accepted'.  It doesn't matter a whole lot, though.

--
nosy: +r.david.murray

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



[issue9344] please add posix.getgrouplist()

2011-06-10 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

Thanks!

--
resolution:  - accepted
stage: commit review - committed/rejected
status: open - closed

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



[issue9344] please add posix.getgrouplist()

2011-06-10 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Nit: when a patch gets committed and the issue closed, the preferred resolution 
is fixed ;)
(see http://docs.python.org/devguide/triaging.html#resolution)

--
resolution: accepted - fixed

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



[issue9344] please add posix.getgrouplist()

2011-06-10 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

 Nit: when a patch gets committed and the issue closed, the preferred
 resolution is fixed ;)
 (see http://docs.python.org/devguide/triaging.html#resolution)

Sure, I will try remember that.

--

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



[issue9344] please add posix.getgrouplist()

2011-06-09 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

I haven't tested yet, but feel free to commit and I'll fix any OSX issues later.

--

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



[issue9344] please add posix.getgrouplist()

2011-06-09 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 9ebee3211be9 by Ross Lagerwall in branch 'default':
Issue #9344: Add os.getgrouplist().
http://hg.python.org/cpython/rev/9ebee3211be9

--
nosy: +python-dev

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



[issue9344] please add posix.getgrouplist()

2011-03-24 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Looks good to me as well.  Just a nit-pick: in python code base sizeof is not 
separated from the opening parenthesis.  I understand the desire to distinguish 
sizeof from a function, but it is probably better to be consistent.

--
assignee: belopolsky - rosslagerwall

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



[issue9344] please add posix.getgrouplist()

2011-03-24 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

Ronald, does it have the same problem as #7900 on OS X or can I commit?

--

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



[issue9344] please add posix.getgrouplist()

2011-03-14 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Patch looks good, but this likely runs into the same problem as #7900: the user 
can be a member of more than NGROUPS_MAX on OSX.

I'll test this tomorrow (by creating a temporary user that is a member of more 
than 16 groups).

--

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



[issue9344] please add posix.getgrouplist()

2011-01-17 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy: +giampaolo.rodola

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



[issue9344] please add posix.getgrouplist()

2011-01-04 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

I can't say anything about the functionality, but the patch looks good to me 
(works under Linux and Solaris - the latter missing getgrouplist()).

--
nosy: +pitrou
stage: needs patch - commit review

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



[issue9344] please add posix.getgrouplist()

2011-01-03 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

A slightly updated patch. Targeting for 3.3.

--
versions: +Python 3.3 -Python 3.2
Added file: http://bugs.python.org/file20253/9344_v2.patch

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



[issue9344] please add posix.getgrouplist()

2010-12-12 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

Attached is a patch (against the latest revision, 87178) which adds the 
functionality to the posix module as well as adds a testcase for it.

I haven't added it to the os module, I'm not sure if that should be done.

I tested it on Linux  FreeBSD and it works as expected. Since I don't have an 
OS X system, I could not test it on there.

--
keywords: +patch
nosy: +rosslagerwall
Added file: http://bugs.python.org/file20024/9344.patch

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



[issue9344] please add posix.getgrouplist()

2010-10-18 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

I don't see how this difference is relevant for exposing the functionality in 
python:

Linux:

int getgrouplist(const char *user, gid_t group,
gid_t *groups, int *ngroups);

MacOS:

int
 getgrouplist(const char *name, int basegid, int *groups, int *ngroups);

The only difference is that Linux uses gid_t and MacOS uses int.  The requested 
posix.getgrouplist() will take a python string and a python integer and return 
a list of integers.

--

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



[issue9344] please add posix.getgrouplist()

2010-10-18 Thread Vetoshkin Nikita

Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment:

@Alexander, it was just a note, that implementation in posixmodule.c won't be 
the same across all flavours of Unix :)

--

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



[issue9344] please add posix.getgrouplist()

2010-10-15 Thread Vetoshkin Nikita

Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment:

Did a bit of digging and found that getgrouplist signature differs on (at 
least) Linux and Mac OS:
 - http://www.kernel.org/doc/man-pages/online/pages/man3/getgrouplist.3.html
 
-http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man3/getgrouplist.3.html

--
nosy: +nvetoshkin

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



[issue9344] please add posix.getgrouplist()

2010-07-23 Thread Ronald Oussoren

New submission from Ronald Oussoren ronaldousso...@mac.com:

A number of unix systems expose a getgroupslist function to fetch the groups 
that a user is a member of. It would be nice if that function were exposed to 
python.

See issue7900 for more information on why that would be useful.

--
keywords: easy
messages: 111309
nosy: ronaldoussoren
priority: low
severity: normal
status: open
title: please add posix.getgrouplist()
versions: Python 3.2

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



[issue9344] please add posix.getgrouplist()

2010-07-23 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


--
nosy: +belopolsky

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



[issue9344] please add posix.getgrouplist()

2010-07-23 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


--
assignee:  - belopolsky
components: +Extension Modules
stage:  - needs patch
type:  - feature request

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