[Tutor] when is object relational mapping for Python warranted?

2008-06-10 Thread Che M
(tried to write a descriptive subject line) I'm curious whether I should consider learning either SQLObject or SQLAlchemy, and whether my needs would be worth it. I am learning to use SQlite databases for fairly simple storage and later search, and have only recently learned about object relati

Re: [Tutor] error message with multiple inheritance

2008-06-10 Thread simone
Christopher Spears ha scritto: I've been working out of Core Python Programming (2nd Edition). Here is an example demonstrating multiple inheritance. class A(object): ... pass ... class B(A): ... pass ... class C(B): ... pass ... class D(A, B): ... pass ... Traceback (

Re: [Tutor] Python-windows command prompt interaction?

2008-06-10 Thread Juzzy Dee
On Wed, Jun 11, 2008 at 3:11 PM, Trey Keown <[EMAIL PROTECTED]> wrote: > Hey all, > I'm creating a program that will copy a user's internet history from > Internet Explorer, and I'm having a bit of trouble. > > I need to get python to either initiate a command via the command prompt, > or open a

[Tutor] Python-windows command prompt interaction?

2008-06-10 Thread Trey Keown
Hey all, I'm creating a program that will copy a user's internet history from Internet Explorer, and I'm having a bit of trouble. I need to get python to either initiate a command via the command prompt, or open a file with its default program (in this case, a .bat file with cmd.exe). I've been

[Tutor] error message with multiple inheritance

2008-06-10 Thread Christopher Spears
I've been working out of Core Python Programming (2nd Edition). Here is an example demonstrating multiple inheritance. >>> class A(object): ... pass ... >>> class B(A): ... pass ... >>> class C(B): ... pass ... >>> class D(A, B): ... pass ... Traceback (most recent call last):

Re: [Tutor] static methods and class methods

2008-06-10 Thread Marilyn Davis
On Tue, June 10, 2008 9:17 pm, Christopher Spears wrote: > I am reading Wesley Chun's "Core Python Programming" (2nd Edition) and > have reached the part on static and class methods. I typed in the > following to demonstrate the difference between the two methods: > class TestClassMethod:

[Tutor] static methods and class methods

2008-06-10 Thread Christopher Spears
I am reading Wesley Chun's "Core Python Programming" (2nd Edition) and have reached the part on static and class methods. I typed in the following to demonstrate the difference between the two methods: >>> class TestClassMethod: ... def foo(cls): ... print 'calling class method fo

Re: [Tutor] for loop

2008-06-10 Thread Alan Gauld
"Tiago Saboga" <[EMAIL PROTECTED]> wrote The count var is never updated. What about: for i in someArray[1:]: print i Yes, that's much better than my enumerate version! :-) Alan G ___ Tutor maillist - Tutor@python.org http://mail.python.org

Re: [Tutor] for loop

2008-06-10 Thread Alan Gauld
"Sean Novak" <[EMAIL PROTECTED]> wrote I would normally write this in PHP like this: for($i=1; i< count($someArray); $i++) { print $someArray[i] } essentially,, I want to loop through an array skipping "someArray[0]" for i,n in enumerate(myArray): if i == 0: continue print n is how

Re: [Tutor] How to get a script to open a text file with Python?

2008-06-10 Thread Alan Gauld
"Terry Carroll" <[EMAIL PROTECTED]> wrote If TextPad is your default txt editor just use os.system("foo.txt") or os.startfile("foo.txt"); sounds like the equivalent, but for some reason, I prefer it. Actually os.startfile was what I meant for the default case! Thanks for pointing it out. sy

Re: [Tutor] for loop

2008-06-10 Thread Martin Walsh
Sean Novak wrote: > I know I'm going to feel stupid on this one.. > I would normally write this in PHP like this: > > for($i=1; i< count($someArray); $i++) > { > print $someArray[i] > } > > essentially,, I want to loop through an array skipping "someArray[0]" > but in python the for syntax is

Re: [Tutor] for loop

2008-06-10 Thread Tiago Saboga
On Tue, Jun 10, 2008 at 09:36:47PM -0400, Sean Novak wrote: > I know I'm going to feel stupid on this one.. > > I would normally write this in PHP like this: > > for($i=1; i< count($someArray); $i++) > { > print $someArray[i] > } > > essentially,, I want to loop through an array skipping "som

Re: [Tutor] for loop

2008-06-10 Thread bob gailer
Sean Novak wrote: I know I'm going to feel stupid on this one.. I would normally write this in PHP like this: for($i=1; i< count($someArray); $i++) { print $someArray[i] } essentially,, I want to loop through an array skipping "someArray[0]" but in python the for syntax is more like forea

Re: [Tutor] IDE

2008-06-10 Thread Lowell Tackett
"W W" answered the question to my satisfaction.  When I first saw the comment, I thought the auther was able to open two virtual windows in the same terminal (Linux) that he was able to view (and interact with) simultaneously.  That was the advice that I was inquiring after.  When I realized he

Re: [Tutor] IDE

2008-06-10 Thread FT
From: "jordan halsey" <[EMAIL PROTECTED]> Sent: Tuesday, June 10, 2008 1:40 PM Any one here using cutter... http://www.fundza.com Free Java based ide with many built in functions and bindings. This is an especially useful tool if you are doing 3d or any kind of shader writing. Also, try this ed

Re: [Tutor] for loop

2008-06-10 Thread Terry Carroll
On Tue, 10 Jun 2008, Sean Novak wrote: > I know I'm going to feel stupid on this one.. > > I would normally write this in PHP like this: > > for($i=1; i< count($someArray); $i++) > { > print $someArray[i] > } > > essentially,, I want to loop through an array skipping "someArray[0]" Like

Re: [Tutor] How to get a script to open a text file with Python?

2008-06-10 Thread Terry Carroll
On Tue, 10 Jun 2008, Alan Gauld wrote: > If TextPad is your default txt editor just use > os.system("foo.txt") or os.startfile("foo.txt"); sounds like the equivalent, but for some reason, I prefer it. ___ Tutor maillist - Tutor@python.org http://ma

[Tutor] for loop

2008-06-10 Thread Sean Novak
I know I'm going to feel stupid on this one.. I would normally write this in PHP like this: for($i=1; i< count($someArray); $i++) { print $someArray[i] } essentially,, I want to loop through an array skipping "someArray[0]" but in python the for syntax is more like foreach in PHP.. I'

Re: [Tutor] How to get a script to open a text file with Python?

2008-06-10 Thread Dick Moores
At 05:17 PM 6/10/2008, John Fouhy wrote: On 11/06/2008, Dick Moores <[EMAIL PROTECTED]> wrote: > At 03:44 PM 6/10/2008, Alan Gauld wrote: [on Windows cmd.exe] > > (assuming you have QuickEdit mode turned on in the > > preferences obviously!) > How about pasting INTO the command prompt. Ctrl+V do

Re: [Tutor] How to get a script to open a text file with Python?

2008-06-10 Thread John Fouhy
On 11/06/2008, Dick Moores <[EMAIL PROTECTED]> wrote: > At 03:44 PM 6/10/2008, Alan Gauld wrote: [on Windows cmd.exe] > > (assuming you have QuickEdit mode turned on in the > > preferences obviously!) > How about pasting INTO the command prompt. Ctrl+V doesn't work, even with > QuickEdit.. Single

Re: [Tutor] How to get a script to open a text file with Python?

2008-06-10 Thread Dick Moores
At 03:44 PM 6/10/2008, Alan Gauld wrote: "Dick Moores" <[EMAIL PROTECTED]> wrote The script prints into the Windows command line window (I don't know the official term), from which copying is a PITA. Whats the problem copying from a command prompt? 1. Click on the little black icon in the

Re: [Tutor] IDE

2008-06-10 Thread jordan halsey
Any one here using cutter... http://www.fundza.com Free Java based ide with many built in functions and bindings. This is an especially useful tool if you are doing 3d or any kind of shader writing. Jordan Reece Halsey maya | mental ray | renderman | nuke | houdini | ae www.jordanhalsey.com ___

Re: [Tutor] How to get a script to open a text file with Python?

2008-06-10 Thread Alan Gauld
"Dick Moores" <[EMAIL PROTECTED]> wrote The script prints into the Windows command line window (I don't know the official term), from which copying is a PITA. Whats the problem copying from a command prompt? Just grab with the mouse and it's selected automatically (assuming you have QuickEdit

Re: [Tutor] IDE

2008-06-10 Thread Alan Gauld
"Lowell Tackett" <[EMAIL PROTECTED]> wrote 1) I have two terminal windows open, one with an interactive python prompt, and the other with vim... How do you do that (as you describe above)? Can you elaborate on the question? He says he opens two terminal windows and runs vim in one and pyth

Re: [Tutor] IDE

2008-06-10 Thread Alan Gauld
"Sean Novak" <[EMAIL PROTECTED]> wrote Thus far,, I know only the basic VIM functionality ie. navigating the document.. search/replace, etc. Still need to learn regular expressions also. This filter stuff rocks.. thanks! vim can do all siort of stuff, most of the basic emacs stuff. split

Re: [Tutor] IDE

2008-06-10 Thread Alan Gauld
"Michael yaV" <[EMAIL PROTECTED]> wrote Since I'm on a mac, how about using Xcode? XCode with the PyObjC bridge is OK for Cocoa work but as a general purpose IDE is no better than a good editor IMHO. I still tend to work with 3 windows on the Mac - vim, shell and Python interactive. I can

Re: [Tutor] IDE

2008-06-10 Thread W W
On Tue, Jun 10, 2008 at 4:27 PM, Lowell Tackett <[EMAIL PROTECTED]> wrote: > > > From the virtual desk of Lowell Tackett > > > --- On Tue, 6/10/08, W W <[EMAIL PROTECTED]> wrote: > > From: W W <[EMAIL PROTECTED]> > Subject: Re: [Tutor] IDE > To: "Sean Novak" <[EMAIL PROTECTED]> > Cc: tutor@python.o

Re: [Tutor] inserting a vector into an array - numpy Q

2008-06-10 Thread Danny Yoo
I know there must be a better way to do this with slices, but I can't seem to figure it out - I keep getting errors about the need to have the same dimensions: Look at the error message more closely. ValueError: arrays must have same number of dimensions What does this mean? The 1-d a

Re: [Tutor] IDE

2008-06-10 Thread Lowell Tackett
>From the virtual desk of Lowell Tackett  --- On Tue, 6/10/08, W W <[EMAIL PROTECTED]> wrote: From: W W <[EMAIL PROTECTED]> Subject: Re: [Tutor] IDE To: "Sean Novak" <[EMAIL PROTECTED]> Cc: tutor@python.org Date: Tuesday, June 10, 2008, 1:09 PM 1) I have two terminal windows open, one with an

[Tutor] inserting a vector into an array - numpy Q

2008-06-10 Thread washakie
I know there must be a better way to do this with slices, but I can't seem to figure it out - I keep getting errors about the need to have the same dimensions: Here's what I'm trying: >>> type(time) >>> type(new_data) >>> shape(time) (1334,) >>> shape(new_data) (1334, 54) >>> newArray=concatena

Re: [Tutor] IDE

2008-06-10 Thread Dick Moores
At 11:48 AM 6/10/2008, Wim De Hul wrote: What about Wingware, I use Wingware professional at ork and the free version at home. Here's the link: http://www.wingware.com What do you like about Wing? Esp. Wing Pro? Dick Moores ___ Tutor maillist -

[Tutor] How to get a script to open a text file with Python?

2008-06-10 Thread Dick Moores
I have a script, fcn_double_phone_grep.py, that does a good job of searching my text file of phone numbers, phone.txt. The script is at < http://py77.python.pastebin.com/f3a8c1f87> The script prints into the Windows command line window (I don't know the official term), from which copying is a PIT

Re: [Tutor] do I need f.close()

2008-06-10 Thread Danny Yoo
f = open(conf, 'w') f.writelines(lines) f.close() Is it as safe to use the following open(conf, 'w').writelines(lines) ie no close() to flush the data, but also not assigned an object name so am I right in thinking that as the object is 'reclaimed' close() is automatically called ?

Re: [Tutor] IDE

2008-06-10 Thread Michael yaV
Thanks, I'll give it look. On Jun 10, 2008, at 2:48 PM, Wim De Hul wrote: What about Wingware, I use Wingware professional at ork and the free version at home. Here's the link: http://www.wingware.com Cheers! Wim On 10 Jun 2008, at 20:13, Michael yaV wrote: Since I'm on a mac, how abou

Re: [Tutor] IDE

2008-06-10 Thread Hansen, Mike
> -Original Message- > From: Michael yaV [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 10, 2008 12:13 PM > To: Kent Johnson > Cc: Hansen, Mike; tutor@python.org > Subject: Re: [Tutor] IDE > > Since I'm on a mac, how about using Xcode? > > > On Jun 10, 2008, at 2:07 PM, Kent Johnson

Re: [Tutor] IDE

2008-06-10 Thread Wim De Hul
What about Wingware, I use Wingware professional at ork and the free version at home. Here's the link: http://www.wingware.com Cheers! Wim On 10 Jun 2008, at 20:13, Michael yaV wrote: Since I'm on a mac, how about using Xcode? On Jun 10, 2008, at 2:07 PM, Kent Johnson wrote: On Tue, Jun

Re: [Tutor] IDE

2008-06-10 Thread Sean Novak
Sweet Jesus!! Thank you! Thus far,, I know only the basic VIM functionality ie. navigating the document.. search/replace, etc. Still need to learn regular expressions also. This filter stuff rocks.. thanks! Sean On Jun 10, 2008, at 1:21 PM, Alan Gauld wrote: "Sean Novak" <[EMAIL PROT

Re: [Tutor] IDE

2008-06-10 Thread Kent Johnson
On Tue, Jun 10, 2008 at 1:30 PM, Michael yaV <[EMAIL PROTECTED]> wrote: > Thanks. What do you think of IDLE? It's primitive. Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] IDE

2008-06-10 Thread Michael yaV
Since I'm on a mac, how about using Xcode? On Jun 10, 2008, at 2:07 PM, Kent Johnson wrote: On Tue, Jun 10, 2008 at 1:30 PM, Michael yaV <[EMAIL PROTECTED]> wrote: Thanks. What do you think of IDLE? It's primitive. Kent ___ Tutor maillist -

Re: [Tutor] Tutor Digest, Vol 52, Issue 27

2008-06-10 Thread Kent Johnson
On Tue, Jun 10, 2008 at 1:13 PM, Chris Balderas <[EMAIL PROTECTED]> wrote: > I would like to be remove off your mailing list please... Just follow the directions here: > To subscribe or unsubscribe via the World Wide Web, visit >http://mail.python.org/mailman/listinfo/tutor > or, via email

Re: [Tutor] do I need f.close()

2008-06-10 Thread bob gailer
dave selby wrote: Hi All, Up to now I when I need to write some data to a file I have been purposely using close() f = open(conf, 'w') f.writelines(lines) f.close() Is it as safe to use the following open(conf, 'w').writelines(lines) ie no close() to flush the data, but also not assigne

Re: [Tutor] do I need f.close()

2008-06-10 Thread Marc Tompkins
On Tue, Jun 10, 2008 at 10:07 AM, dave selby <[EMAIL PROTECTED]> wrote: > Hi All, > > Up to now I when I need to write some data to a file I have been > purposely using close() > > f = open(conf, 'w') > f.writelines(lines) > f.close() > > Is it as safe to use the following > > open(conf, 'w')

Re: [Tutor] do I need f.close()

2008-06-10 Thread Kent Johnson
On Tue, Jun 10, 2008 at 1:07 PM, dave selby <[EMAIL PROTECTED]> wrote: > Hi All, > > Up to now I when I need to write some data to a file I have been > purposely using close() > > f = open(conf, 'w') > f.writelines(lines) > f.close() > > Is it as safe to use the following > > open(conf, 'w').w

Re: [Tutor] Tutor Digest, Vol 52, Issue 27

2008-06-10 Thread Chris Balderas
costs big > bucks and doesn't do Python. > > For Python work, since I assume that's what you are really > interested in, I use Pythonwin for small projects. For bigger jobs > I use vim with a command prompt and an interactive session. > 3 windows and Unix or Cygwin to provide t

Re: [Tutor] do I need f.close()

2008-06-10 Thread Alan Gauld
"dave selby" <[EMAIL PROTECTED]> wrote Up to now I when I need to write some data to a file I have been purposely using close() f = open(conf, 'w') f.writelines(lines) f.close() Is it as safe to use the following open(conf, 'w').writelines(lines) In theory yes, but in practice its muc

Re: [Tutor] IDE

2008-06-10 Thread Michael yaV
Thanks. What do you think of IDLE? On Jun 10, 2008, at 11:39 AM, Hansen, Mike wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael yaV Sent: Tuesday, June 10, 2008 8:45 AM To: Alan Gauld Cc: tutor@python.org Subject: Re: [Tutor] IDE How a

Re: [Tutor] IDE

2008-06-10 Thread Alan Gauld
"Sean Novak" <[EMAIL PROTECTED]> wrote like about EMACS, however, is the ability to run the current buffer interactively to a python command line. Is there a way to set this up in VIM? Yes, it's a standard vi (not even vim) feature. The command is something like: :!(motion) python Where (m

Re: [Tutor] do I need f.close()

2008-06-10 Thread W W
On Tue, Jun 10, 2008 at 12:07 PM, dave selby <[EMAIL PROTECTED]> wrote: > Hi All, > > Up to now I when I need to write some data to a file I have been > purposely using close() > > f = open(conf, 'w') > f.writelines(lines) > f.close() > > Is it as safe to use the following > > open(conf, 'w').

Re: [Tutor] IDE

2008-06-10 Thread W W
On Tue, Jun 10, 2008 at 11:44 AM, Sean Novak <[EMAIL PROTECTED]> wrote: >> however, is the ability to run the current buffer interactively to a python >> command line. Is there a way to set this up in VIM? I know there's some python what-nots with vim, but I just do one of a few options: 1) I ha

[Tutor] do I need f.close()

2008-06-10 Thread dave selby
Hi All, Up to now I when I need to write some data to a file I have been purposely using close() f = open(conf, 'w') f.writelines(lines) f.close() Is it as safe to use the following open(conf, 'w').writelines(lines) ie no close() to flush the data, but also not assigned an object name so

Re: [Tutor] IDE

2008-06-10 Thread Hansen, Mike
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Sean Novak > Sent: Tuesday, June 10, 2008 10:44 AM > To: tutor@python.org > Subject: Re: [Tutor] IDE > > > > > Wow.. thanks everyone!! I am on a mac,, currently. But, I often > > bounce from one

Re: [Tutor] IDE

2008-06-10 Thread Sean Novak
Wow.. thanks everyone!! I am on a mac,, currently. But, I often bounce from one computer to the next.. often Linux. So, I like the VIM option as it comes pre installed on either OS. One thing that I like about EMACS, however, is the ability to run the current buffer interactively to a

Re: [Tutor] IDE

2008-06-10 Thread Hansen, Mike
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Sean Novak > Sent: Tuesday, June 10, 2008 5:08 AM > To: tutor@python.org > Subject: [Tutor] IDE > > I'm looking for the perfect IDE, preferably open source. I've > installed Bluefish, which I fin

Re: [Tutor] IDE

2008-06-10 Thread Hansen, Mike
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Michael yaV > Sent: Tuesday, June 10, 2008 8:45 AM > To: Alan Gauld > Cc: tutor@python.org > Subject: Re: [Tutor] IDE > > How about for the Mac platform? > Textmate(not open source) but most who p

Re: [Tutor] IDE

2008-06-10 Thread Michael yaV
How about for the Mac platform? On Jun 10, 2008, at 8:26 AM, Alan Gauld wrote: "Sean Novak" <[EMAIL PROTECTED]> wrote I'm looking for the perfect IDE, preferably open source. Aren't we all! :-) We used to have editor wars, now its IDE wars... someone has tried a few different IDEs and fo

Re: [Tutor] IDE

2008-06-10 Thread Demonic Software
I have tried a few and I mainly stick with Eclipse IDE + PyDev for large projects, simply because I develop stuff in other languages and it is X-platform. For small stuff, I might just use Notepad++ (Windows), Kate/(KDE)/ vim, or ipython for rapid python prototyping :) My only dislike about vim i

Re: [Tutor] IDE

2008-06-10 Thread Alan Gauld
"Sean Novak" <[EMAIL PROTECTED]> wrote I'm looking for the perfect IDE, preferably open source. Aren't we all! :-) We used to have editor wars, now its IDE wars... someone has tried a few different IDEs and found the one that they love.. I'd be interested in your insight! I've tried many

Re: [Tutor] IDE

2008-06-10 Thread Kent Johnson
On Tue, Jun 10, 2008 at 7:07 AM, Sean Novak <[EMAIL PROTECTED]> wrote: > I'm looking for the perfect IDE, preferably open source. 'Perfect' is in the eye of the beholder! Some suggestions here: http://wiki.python.org/moin/IntegratedDevelopmentEnvironments Kent

Re: [Tutor] parsing .txt

2008-06-10 Thread Kent Johnson
On Tue, Jun 10, 2008 at 7:45 AM, bob gailer <[EMAIL PROTECTED]> wrote: > questionary = [] > > for line in textdata.split('\n'): > if line: > tag, content = line.split(' ', 1) tag = tag[1:] # strip leading % > if tag == "question": > questionary.append({tag : content

Re: [Tutor] IDE

2008-06-10 Thread mail limodou
On Tue, Jun 10, 2008 at 7:32 PM, mail limodou <[EMAIL PROTECTED]> wrote: > On Tue, Jun 10, 2008 at 7:07 PM, Sean Novak <[EMAIL PROTECTED]> wrote: > >> I'm looking for the perfect IDE, preferably open source. I've installed >> Bluefish, which I find to be a little buggy still. I'm just starting t

Re: [Tutor] IDE

2008-06-10 Thread W W
I use vi/vim. I find it extremely useful/powerful. -Wayne ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] parsing .txt

2008-06-10 Thread bob gailer
glist wrote: Let's say I have a file with this kind of content/lines textdata = ''' %question What is Python? %correct A programming language %wrong A graphical package %wrong An operating system %question Is Computer Science really about computers? %wrong Yes %correct No ''' I want to pose th

Re: [Tutor] IDE

2008-06-10 Thread muhamed niyas
You can use either Komodo or Anjuta. Komodo is better than Anjuta. On Tue, Jun 10, 2008 at 4:37 PM, Sean Novak <[EMAIL PROTECTED]> wrote: > I'm looking for the perfect IDE, preferably open source. I've installed > Bluefish, which I find to be a little buggy still. I'm just starting to > dive in

Re: [Tutor] IDE

2008-06-10 Thread mail limodou
On Tue, Jun 10, 2008 at 7:07 PM, Sean Novak <[EMAIL PROTECTED]> wrote: > I'm looking for the perfect IDE, preferably open source. I've installed > Bluefish, which I find to be a little buggy still. I'm just starting to > dive into emacs, which I feel is a little daunting. If someone has tried a

Re: [Tutor] Writing a script to interact with an interactive commandprogram

2008-06-10 Thread Chris Fuller
On the subject of controlling interactive programs and Tcl, one can hardly forget expect.. now add Python and you probably have what you want: http://www.noah.org/wiki/Pexpect Cheers ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailm

[Tutor] IDE

2008-06-10 Thread Sean Novak
I'm looking for the perfect IDE, preferably open source. I've installed Bluefish, which I find to be a little buggy still. I'm just starting to dive into emacs, which I feel is a little daunting. If someone has tried a few different IDEs and found the one that they love.. I'd be interes

Re: [Tutor] Controlling applications

2008-06-10 Thread Chris Fuller
On Monday 09 June 2008 14:13, Alan Gauld wrote: > You need to find an API that lets you work at the X windows > protocol level. I don;t know of one but will be surprised if > there isn't such a beast around somewhere! This made me think of Tcl's send() function. This web page has some links that

[Tutor] parsing .txt

2008-06-10 Thread glist
Let's say I have a file with this kind of content/lines textdata = ''' %question What is Python? %correct A programming language %wrong A graphical package %wrong An operating system %question Is Computer Science really about computers? %wrong Yes %correct No ''' I want to pose the question to a

Re: [Tutor] Writing a script to interact with an interactivecommandprogram

2008-06-10 Thread Alan Gauld
"Demonic Software" <[EMAIL PROTECTED]> wrote I have been working with the Popen class, and it hangs when I perform the read on the stdout socket. Strange. I get similar results. Yet I've used it successfully in the past. Even simple commands are not returning anything. I will need to do s