Is this a bug ?
Running the following script with Python 2.3.5:
.................
#!/usr/bin/python
import grp
# groups = grp.getgrall()
agroup = grp.getgrnam('wheel')
print agroup
print type(agroup)
print agroup.__contains__('john')
print agroup.__contains__('x')
.................
This is the output I get:
.................
('wheel', 'x', 199, ['marcel', 'john', 'ben'])
<type 'grp.struct_group'>
False
True
.................
I expected __contains__ to tell me if a given user is part of a group, but
it seems that it's checking the password field ??
Thanks.
Yves.
----
Yves Dorfsman yv**@zioup.com
http://www.SollerS.ca