[issue22513] grp.struct_group is not hashable

2014-09-29 Thread Ethan Furman
Ethan Furman added the comment: Thanks, Serhiy. -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue22513] grp.struct_group is not hashable

2014-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is because grp.struct_group contains unhashable component (a list). Same behavior with tuple: >>> tuple(grp.getgrgid(1000)) ('serhiy', 'x', 1000, []) >>> set(tuple(grp.getgrgid(1000))) Traceback (most recent call last): File "", line 1, in TypeError:

[issue22513] grp.struct_group is not hashable

2014-09-29 Thread Ethan Furman
Ethan Furman added the comment: Test added. -- keywords: +patch stage: -> needs patch Added file: http://bugs.python.org/file36752/issue22513.stoneleaf.01.patch ___ Python tracker _

[issue22513] grp.struct_group is not hashable

2014-09-29 Thread Ethan Furman
New submission from Ethan Furman: First, the behavior for pwd.struct_passwd: - --> pwd.getpwuid(1000) pwd.struct_passwd(pw_name='ethan', pw_passwd='x', pw_uid=1000, pw_gid=1000, pw_gecos='Ethan Furman,,,', pw_dir='/home/ethan', pw_shell='/bin/bash') --> s