Chris Brannon <[EMAIL PROTECTED]>:

Iirc since Python 2.5 these tuples are named ...

> Instead, do this:
> 
> import grp
> groupname = 'users'
> groupusers = grp.getgrnam(groupname)[3]
... thus this line could be written as:

groupusers = grp.getgrnam(groupname).gr_mem

Slightly more readable, imho



-- 
Freedom is always the freedom of dissenters.
                                      (Rosa Luxemburg)
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to