os.name

Holger Jannsen holger at phoenix-edv.netzservice.de
Mon Aug 2 09:00:38 EDT 1999


High Arpard,

thanx for help but I got probs with that popen3 under Win95:
'o.readlines()' doesn't return anymore. To find out I checked
it line per line:

Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import win32pipe
>>> i,o,e=win32pipe.popen3('ver', 'b')
>>> o.readline()
'\015\012'
>>> o.readline()
'Windows 95. [Version 4.00.1111]\015\012'
>>> o.readline()
'\015\012'
>>> o.readline()

Don't know why, but it never;-) returns.
Perhaps it may be a bug in win32pipe, that it doesn't return 
becourse readline couldn't find CarriageReturn/EOF?

I took win32pipe.popen('ver','r') for a better solution.
That works fine.

greetings,
Holger



Arpad Kiss wrote:
> 
> Emile van Sebille wrote:
> >
> > It sure would.  Any idea how you would get the result back into python
> > without having the dos command windows flash up on the screen?
> On Windows NT I use win32pipe:
> i,o,e=win32pipe.popen3('ver')
> ret=o.readlines()
> >
> >...




More information about the Python-list mailing list