why does popen2 silently ignore IOError?

Jörg Wölke dvass at felis.uni-freiburg.de
Wed Feb 20 09:57:23 EST 2002


Graham Guttocks schrieb:
> 
> Greetings,

Hello!

[ snip ]

> As you can see, no exceptions were raised despite the fact that there
> is no such file as '/bin/nonexistent'.  Why is this?

Because popen(3) returns a file descriptor or a Null-pointer?
Try testing for None.
 
> Regards,
> Graham

HTH,HAND
and Greetings J"o!

-- 
.sig not found



More information about the Python-list mailing list