[issue10433] Document unique behavior of 'getgroups' on OSX

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[issue10433] Document unique behavior of 'getgroups' on OSX

STINNER Victor

New submission from R. David Murray <[hidden email]>:

Per issue 7900, os.getgroups on OSX does not behave the same way as on any other unix platform.  This seems worthy of a documentation note, since anyone trying to write portable code could get bit by this.

I don't really understand the relationship on OSX between what the current os.getgroups returns, what the normal unix os.getgroups returns, and what things a process can actually *do*, so I can't write that documentation.  Hopefully someone else can.

A doc note is probably also needed about the relationship between os.setgroups and os.getgroups on OSX, which again I do not understand and so cannot write.

----------
messages: 121293
nosy: r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: Document unique behavior of 'getgroups' on OSX
type: behavior

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue10433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%40nabble.com

Reply | Threaded
Open this post in threaded view
|

[issue10433] Document unique behavior of 'getgroups' on OSX

STINNER Victor

Changes by Alexander Belopolsky <[hidden email]>:


----------
nosy: +belopolsky

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue10433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%40nabble.com

Reply | Threaded
Open this post in threaded view
|

[issue10433] Document unique behavior of 'getgroups' on OSX

STINNER Victor
In reply to this post by STINNER Victor

Changes by Alexander Belopolsky <[hidden email]>:


----------
assignee:  -> docs@python
components: +Documentation, Macintosh
nosy: +docs@python
versions: +Python 3.2

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue10433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%40nabble.com

Reply | Threaded
Open this post in threaded view
|

[issue10433] Document unique behavior of 'getgroups' on OSX

STINNER Victor
In reply to this post by STINNER Victor

Changes by R. David Murray <[hidden email]>:


----------
nosy: +ned.deily, ronaldoussoren

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue10433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%40nabble.com

Reply | Threaded
Open this post in threaded view
|

[issue10433] Document unique behavior of 'getgroups' on OSX

STINNER Victor
In reply to this post by STINNER Victor

Changes by R. David Murray <[hidden email]>:


----------
nosy: +michael.foord

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue10433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%40nabble.com

Reply | Threaded
Open this post in threaded view
|

[issue10433] Document unique behavior of 'getgroups' on OSX

STINNER Victor
In reply to this post by STINNER Victor

Ronald Oussoren <[hidden email]> added the comment:

I do understand the issue, but I'm not sure if I can write it down consisely. I've attached an initial attempt (patch is relative to the default branch, I'll port to 2.7 and 3.2 if it looks OK)

----------
keywords: +needs review, patch
Added file: http://bugs.python.org/file21133/issue10433.patch

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue10433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%40nabble.com

Reply | Threaded
Open this post in threaded view
|

[issue10433] Document unique behavior of 'getgroups' on OSX

STINNER Victor
In reply to this post by STINNER Victor

Ned Deily <[hidden email]> added the comment:

Here's a revised doc patch. As noted from my investigation in Issue7900, the key getgroups behavior change is with the OS X 10.6 ABI (so > 10.5), not 10.5.

----------
stage: needs patch -> commit review
Added file: http://bugs.python.org/file21528/issue10433-v2.patch

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue10433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%40nabble.com

Reply | Threaded
Open this post in threaded view
|

[issue10433] Document unique behavior of 'getgroups' on OSX

STINNER Victor
In reply to this post by STINNER Victor

Hynek Schlawack <[hidden email]> added the comment:

This one LGTM, still applies cleanly against current tip and is languishing for a way to long time.

Commit & close?

----------
nosy: +hynek
versions: +Python 3.3

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue10433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%2B1322467933539-512619%40n6.nabble.com

Reply | Threaded
Open this post in threaded view
|

[issue10433] Document unique behavior of 'getgroups' on OSX

STINNER Victor
In reply to this post by STINNER Victor

Roundup Robot <[hidden email]> added the comment:

New changeset 2468b58f7fce by Ned Deily in branch '2.7':
Issue #10433: Document unique behavior of 'os.getgroups' on Mac OS X.
http://hg.python.org/cpython/rev/2468b58f7fce

New changeset 5c801899cd6d by Ned Deily in branch '3.2':
Issue #10433: Document unique behavior of 'os.getgroups' on Mac OS X.
http://hg.python.org/cpython/rev/5c801899cd6d

New changeset e7d545a5f6bc by Ned Deily in branch 'default':
Issue #10433: merge
http://hg.python.org/cpython/rev/e7d545a5f6bc

----------
nosy: +python-dev

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue10433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%2B1322467933539-512619%40n6.nabble.com

Reply | Threaded
Open this post in threaded view
|

[issue10433] Document unique behavior of 'getgroups' on OSX

STINNER Victor
In reply to this post by STINNER Victor

Ned Deily <[hidden email]> added the comment:

Committed with minor revisions for 2.7.4, 3.2.4, and 3.3.0a3.

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

_______________________________________
Python tracker <[hidden email]>
<http://bugs.python.org/issue10433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/lists%2B1322467933539-512619%40n6.nabble.com