Python 2.2.1: os.popen() bug?

Dmitri I GOULIAEV dmitri.gouliaev at telkel.net
Mon May 27 13:17:01 EDT 2002


Hi, Denis S. Otkidach !

 On Mon, May 27, 2002 at 03:48:33PM +0400, Denis S. Otkidach wrote:

> On Mon, 27 May 2002, Carsten Gaebler wrote:
> 
> CG> If I write to a pipe that was opened read-only, python throws an
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                
> CG> exception, but then the interpreter hangs instead of exiting. Is this
> CG> beavior expected or a bug? Consider this example on Linux:
> CG>
> CG> #! /usr/bin/python
> CG>
> CG> import os
> CG>
> CG> pipe = os.popen("mail -s Test foo at bar.org")
> 
> You have opened pipe for reading, try:

Exactly. He told he will open a pipe read-only.
His question was about interpreter' reaction in this situation. 

-- 
DIG (Dmitri I GOULIAEV)
 
All below this line is added by my e-mail provider.





More information about the Python-list mailing list