Author xdegaye
Recipients serhiy.storchaka, vstinner, xdegaye
Date 2017-11-22.09:31:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2017-11-22 09:31:05xdegayesetrecipients: + xdegaye, vstinner, serhiy.storchaka
2017-11-22 09:31:05xdegayesetmessageid: <>
2017-11-22 09:31:05xdegayelinkissue32033 messages
2017-11-22 09:31:05xdegayecreate