[issue4261] The pwd module doesn't distinguish between errors and no user

2008-11-05 Thread Peter Åstrand
New submission from Peter Åstrand <[EMAIL PROTECTED]>: The getpwnam function in the pwd module does not correctly distinguish between the case when the user does not exist and error conditions. getpwnam() returns NULL in both cases, the the calling code needs to check errno to determine

[issue1475] test_popen fails when the directory contains a space

2007-11-22 Thread Peter Åstrand
Peter Åstrand added the comment: >In Python 3.x os.popen is implemented based on subprocess. Oh, I see. >I believe it's still a problem with subprocess. I'm still not convinced of this. Isn't it better to do the quoting outside subprocess; to let the caller do it? Yo

[issue1475] test_popen fails when the directory contains a space

2007-11-20 Thread Peter Åstrand
Peter Åstrand added the comment: I think there's some confusion in this bug. The report on http://pastebin.com/fa947767 indicates a problem in test_popen. This is a test for os.popen() and it does not have anything to do with the subprocess module. I believe it is test_popen.py that shou