This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients akuchling, giampaolo.rodola, loewis, r.david.murray, serhiy.storchaka, vajrasky
Date 2014-01-10.14:23:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389363826.61.0.850194783001.issue10388@psf.upfronthosting.co.za>
In-reply-to
Content
I think that a new cross platform API would be great, but I don't think that fixing this bug should wait for that.  It may be borderline for being changed in a feature release (and definitely should not be changed in a maintenance release), but I think it would be OK.  Mostly likely a program that uses spwd will also be using other root-only functions and already be producing other errors if run as a non-privileged user.  The file-doesn't-exist case is a little more concerning, but my guess is that anyone actually checking for an empty return (as opposed to their program just failing when it gets one) would actually welcome the change, since it will give a more specific error message.

Or, to put it another way, I think the negative impact of this in a feature release will be low enough that we won't take much if any flak for it :)
History
Date User Action Args
2014-01-10 14:23:46r.david.murraysetrecipients: + r.david.murray, loewis, akuchling, giampaolo.rodola, serhiy.storchaka, vajrasky
2014-01-10 14:23:46r.david.murraysetmessageid: <1389363826.61.0.850194783001.issue10388@psf.upfronthosting.co.za>
2014-01-10 14:23:46r.david.murraylinkissue10388 messages
2014-01-10 14:23:46r.david.murraycreate