Class v. Instance variables in Python

2008-11-10 Thread Zane Selvans
include example code. I haven't been able to boil it down to a minimal example yet. Zane -- Zane Selvans Amateur Earthling [EMAIL PROTECTED] 303/815-6866 http://zaneselvans.org PGP Key: 55E0815F -- http://mail.python.org/mailman/listinfo/python-list

Re: Class v. Instance variables in Python

2008-11-10 Thread Zane Selvans
Joe Strout joe at strout.net writes: How are you creating your list? You need to make sure that each instance creates its very own list object, something like: self.foo = [] rather than grabbing a reference to some shared list instance, such as one defined as a default argument

os.popen does not seem to catch stdout

2007-11-07 Thread zane . selvans
Hi there, I've been banging my head against this for a day, and I can't take it anymore. It's probably a stupid error, but I don't see where. I'm trying to use Python to call an external program, and then catch and process the output of that program. Seems simple enough. The command I'm