Author xdegaye
Recipients serhiy.storchaka, vstinner, xdegaye
Date 2017-11-22.09:31:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511343065.85.0.213398074469.issue32033@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-11-22 09:31:05xdegayesetrecipients: + xdegaye, vstinner, serhiy.storchaka
2017-11-22 09:31:05xdegayesetmessageid: <1511343065.85.0.213398074469.issue32033@psf.upfronthosting.co.za>
2017-11-22 09:31:05xdegayelinkissue32033 messages
2017-11-22 09:31:05xdegayecreate