Xavier de Gaye <xdeg...@gmail.com> added the comment: Changing test_pwd does not correct the fact that the current implementation of the pwd module may break an existing Python application since this (old indeed) API states "The uid and gid items are integers, all others are strings".
> returning an empty string instead of None will make impossible to distinguish > NULL from "". AFAIK in the 50 years since the creation of the unix operating system, there has never been an implementation of pwd that states that a string field may be either an empty string or NULL. And it is doubtful that there will ever be one, since this would break all (all, not just the Python applications) existing applications using pwd. ---------- _______________________________________ 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