Xavier de Gaye <xdeg...@gmail.com> added the comment: > I'm not sure that it's very useful to distinguish NULL and an empty char* > string.
I agree. An attribute of a ('pwd' Python module) password database entry corresponds to the field of a line in a 'passwd' text file. So it makes sense that when the field is empty in the text file, the corresponding attribute be an empty string and never None if it is not an integer (FWIW Android does not have a 'passwd' file). Changing the title of the issue. ---------- components: -Tests title: The pwd test test_values fails on Android -> The pwd module implementation incorrectly sets some attributes to None versions: +Python 2.7, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32033> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com