SUGGEST: os.getuser()

Gerrit Holl gerrit.holl at pobox.com
Sun Jan 16 11:40:04 EST 2000


Hello,

may I suggest this function for in the posix module:

def getuser():
    import pwd
    return pwd.getpwuid(getuid())[0]

I don't know how this would be implemented on W/NT.

regards,
Gerrit.

-- 
Please correct any bad English you encounter in my email message!
-----BEGIN GEEK CODE BLOCK----- http://www.geekcode.com
Version: 3.12
GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O !M !V PS+ PE?
Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y
-----END GEEK CODE BLOCK-----




More information about the Python-list mailing list