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 vstinner
Recipients serhiy.storchaka, vstinner, xdegaye
Date 2017-11-15.10:49:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510742992.38.0.213398074469.issue32033@psf.upfronthosting.co.za>
In-reply-to
Content
Hum, I changed my mind a little bit :-)

> (2) to modify the sets() function in Modules/pwdmodule.c to set an empty string instead of None when the member of the passwd structure is a NULL pointer.

I checked the doc: pwd doesn't mention None at all :-(
https://docs.python.org/dev/library/pwd.html

For practical reasons, maybe (2) is nicer option. It would avoid to have all existing code just for Android.

I'm not sure that it's very useful to distinguish NULL and an empty char* string.
History
Date User Action Args
2017-11-15 10:49:52vstinnersetrecipients: + vstinner, xdegaye, serhiy.storchaka
2017-11-15 10:49:52vstinnersetmessageid: <1510742992.38.0.213398074469.issue32033@psf.upfronthosting.co.za>
2017-11-15 10:49:52vstinnerlinkissue32033 messages
2017-11-15 10:49:52vstinnercreate