MRAB wrote:
norseman wrote:
Piet van Oostrum wrote:
norseman (n) wrote:
[snip]
n> Some questions:
n> 1) "...], stdout=PIPE).stdout
n>^^ why the double use?
It is not a double use. Popen(["z6.py"], stdout=PIPE) gives you a Popen
object, not a file object
norseman wrote:
Piet van Oostrum wrote:
norseman (n) wrote:
[snip]
n> Some questions:
n> 1) "...], stdout=PIPE).stdout
n>^^ why the double use?
It is not a double use. Popen(["z6.py"], stdout=PIPE) gives you a Popen
object, not a file object. If you add
Piet van Oostrum wrote:
norseman (n) wrote:
n> Piet van Oostrum wrote:
norseman (n) wrote:
n> I have tried both and Popen2.popen2().
n> os.popen runs both way, contrary to docs.
What do you mean `os.popen runs both way'?
n> It reads from child while console writes directly to child -
> norseman (n) wrote:
>n> Piet van Oostrum wrote:
norseman (n) wrote:
>>>
>n> I have tried both and Popen2.popen2().
>n> os.popen runs both way, contrary to docs.
>>>
>>> What do you mean `os.popen runs both way'?
>n> It reads from child while console writes directly to child -
Piet van Oostrum wrote:
norseman (n) wrote:
n> I have tried both and Popen2.popen2().
n> os.popen runs both way, contrary to docs.
What do you mean `os.popen runs both way'?
It reads from child while console writes directly to child - thus
eliminating the problem of coding a pass throug
norseman wrote:
[snip]
I have tried both and Popen2.popen2().
os.popen runs both way, contrary to docs.
# master.py
import os
#both lines work same
#xx= os.popen("/mnt/mass/py/z6.py").readlines()
xx= os.popen("/mnt/mass/py/z6.py",'r',1).readlines()
readlines() returns only when
> norseman (n) wrote:
>n> I have tried both and Popen2.popen2().
>n> os.popen runs both way, contrary to docs.
What do you mean `os.popen runs both way'?
>n> # master.py
>n> import os
>n> #both lines work same
Of course, because 'r' is the default, and the bufsize for readi
norseman wrote:
> The direct question comes back to:
> How does one force a sync or flush() to take effect in Python with
> Tkinter in use? Or just in Python period. The keyword being force.
Here's some truly minimal code which shows the same buffering behaviour:
$ cat master.py
#!/usr/bin/env p
Peter Otten wrote:
norseman wrote:
Peter Otten wrote:
norseman wrote:
This was sent 5/19/09 and as yet has received no comments.
I'm resending just in case a new reader might have an answer.
If you had posted two tiny scripts demonstrating your problem instead of
the longwinded explanation
norseman wrote:
Peter Otten wrote:
norseman wrote:
This was sent 5/19/09 and as yet has received no comments.
I'm resending just in case a new reader might have an answer.
If you had posted two tiny scripts demonstrating your problem instead
of the longwinded explanation I might have tin
norseman wrote:
> Peter Otten wrote:
>> norseman wrote:
>>
>>> This was sent 5/19/09 and as yet has received no comments.
>>
>>> I'm resending just in case a new reader might have an answer.
>>
>> If you had posted two tiny scripts demonstrating your problem instead of
>> the longwinded explana
Peter Otten wrote:
norseman wrote:
This was sent 5/19/09 and as yet has received no comments.
I'm resending just in case a new reader might have an answer.
If you had posted two tiny scripts demonstrating your problem instead of the
longwinded explanation I might have tinkered.
Peter
norseman wrote:
> This was sent 5/19/09 and as yet has received no comments.
> I'm resending just in case a new reader might have an answer.
If you had posted two tiny scripts demonstrating your problem instead of the
longwinded explanation I might have tinkered.
Peter
--
http://mail.python.
This was sent 5/19/09 and as yet has received no comments.
I'm resending just in case a new reader might have an answer.
==
I have come across a problem that, as I understand all documentation I
have found, should not exist.
Python version is 2.5.2, Tinker in t
I have come across a problem that, as I understand all documentation I
have found, should not exist.
Python version is 2.5.2, Tinker in that package.
Linux Slackware 10.2
I went to test os.popen and got mixed answers.
1) IF os.popen opens a command line or command window type
15 matches
Mail list logo