◐ Shell
clean mode source ↗

Message 306263 - Python tracker

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.