In the following program why is pwd.getpwuid returning my user and group names followed by three commas? Where ar ethe commas coming from?
#!/usr/bin/python3
import os, stat, pwd
dirList = os.listdir()
permissions = (stat.filemode(os.stat(dirList[1]).st_uid))
string = permissions + ' '
string = string + dirList[1]
print(string)
temp = os.stat(dirList[1])
print(temp.st_uid)
temp2 = pwd.getpwuid(temp.st_uid)
print(temp2.pw_gecos)