Re: [Tutor] os.popen4 help!

2010-03-16 Thread Steven D'Aprano
On Wed, 17 Mar 2010 07:56:40 am Jeff Peery wrote: > Hello, > I'm trying to run an executable file from a python script. the > executable is "opcenum.exe". [...] > currently I do the below: > > import os > cmd = 'opcenum.exe/IOPCServerList/EnumClassesofCategory > 63D5F432-CFE4-11d1-B2C8-0060083BA1FB

[Tutor] os.popen4 help!

2010-03-16 Thread Jeff Peery
Hello, I'm trying to run an executable file from a python script. the executable is "opcenum.exe". OPCENUM.EXE is an executable that is usually found on computers with OPC software; such as OPC Servers or OPC Clients. The purpose of OPCENUM.EXE is to provide an

Re: [Tutor] Hi there :.)

2010-03-16 Thread Stefan Behnel
Alan Gauld, 15.03.2010 20:28: wrote (apparently python is slow ?!?). It is all relative. If you want to write fast moving graphics etc then yes, you probably need C++. For anything else you might find Python is fast enough. A good approach tends to be: write it in Python first, benchmark it

[Tutor] Hi there!

2010-03-16 Thread Marco Rompré
Hi! Does anyone of you know where to find all the solutions of Gerard Swinnen Python tutorial exercises In the tutorial we just have the solutions to half of the exercises. Thank you -- Marc-O. Rompré ___ Tutor maillist - Tutor@python.org To un

Re: [Tutor] raw_input()

2010-03-16 Thread Steven D'Aprano
On Tue, 16 Mar 2010 11:27:13 am you wrote: > I think he thinks that python is going to read the whole 3.6GB of > data into memory in one hit, rather than using a small amount of > memory to process it line by line. But "for line in datafile" in your > code above uses a generator, right? So I don't