??? Re: popen2 bug?

Roman Suzi rnd at onego.ru
Tue Sep 18 12:17:00 EDT 2001


On Tue, 18 Sep 2001, Roman Suzi wrote:

>I came across unidentified difficulty when doing the following:
>
>>>> d = (("a"*120) + "\n") * 300     # prepare data
>>>> import popen2
>>>> a, b = popen2.popen2("grep a")   # pipe to/from grep setup
>>>> b.write(d)                       # trying to write... takes forever!

The same happens even when using "cat" instead of "grep"
and also it sometimes doesn't matter if \n is at the end or not.

That is, popen2.* are nearly unusable or I am very mistaken
about their use.

Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Tuesday, September 18, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "Heavy, adj.: Seduced by the chocolate side of The Force." _/





More information about the Python-list mailing list