Re: Using "subprocess" without lists. . .?

2007-05-13 Thread Michael Williams
f a list. And there is really no way to properly parse because some options have values and others are simply flags. Thanks, Michael On May 13, 2007, at 2:17 PM, Steven Howe wrote: Michael Williams wrote: Hi All, I've recently seen the "subprocess" module and am rather c

Using "subprocess" without lists. . .?

2007-05-13 Thread Michael Williams
Hi All, I've recently seen the "subprocess" module and am rather confused by it's requirements. Is it not possible to execute an entire string without having to break them up into a list of arguments? For instance, I'd much rather do the following: subprocess.call("ls -al | grep -i test"

Re: a good programming text editor (not IDE)

2006-06-15 Thread Michael Williams
If you're on a Mac, I'd recommend TextWrangler (http:// www.barebones.com/products/textwrangler/) hands down. -- http://mail.python.org/mailman/listinfo/python-list

Re: what's wrong with my popen reasoning?

2006-02-05 Thread Michael Williams
Hello,I would possibly look into using Pexpect (http://pexpect.sourceforge.net/) and the python "time" module for things of this nature.  It gives you a bit more granular control over what happens when.Regards,MichaelOn Feb 5, 2006, at 2:57 PM, [EMAIL PROTECTED] wrote:From: Rick Spencer <[EMAIL PRO

Using XML w/ Python...

2005-12-11 Thread Michael Williams
If you just want to get into it and use it, I'd recommend the following: http://uche.ogbuji.net/uche.ogbuji.net/tech/4suite/amara/It requires the installation of the 4Suite module as well, but it's well worth it.  I uses data binding techniques to convert your document into a large tree of named XM

Re: How to stop a linux process

2005-12-09 Thread Michael Williams
You may check out the  http://pexpect.sourceforge.net/ module.  This gives you pretty good control over running processes.  It even allows you to "interact" with them.Regards,MichaelOn Nov 28, 2005, at 4:00 PM, [EMAIL PROTECTED] wrote:From: Glen <[EMAIL PROTECTED]> Date: November 28, 2005 2:10:05 P

Freeze doesn't import all modules . . .

2005-12-09 Thread Michael Williams
Is there any way to FORCE freeze to import all necessary modules no matter what? I have noticed that a few 3rd party modules simply don't get included in a "compiled" bundle. More specifically, "PEXPECT", and some of the required "AMARA" xml modules aren't included when you freeze a pyth

Re: Python-list Digest, Vol 27, Issue 123

2005-12-08 Thread Michael Williams
Thanks, Heiko, I'll give this a try.  In the meantime, I'll try to explain what exactly I mean.Basically, I want the ability to reference a variable just as I am able to set a variable (or attribute) on the fly.  For instance, say the user has the following list in a text file: [butter, cream, eggs

Re: dynamic variable referencing

2005-12-07 Thread Michael Williams
Bruno,Thanks, but the whole reason I need it is to create objects in the tree on the fly.  Every implementation I've seen of Element tree manually assigns values to the nodes and manually places them.  All I care about is that any tags they have are in my list of "valid_tags".  Otherwise they can b

dynamic variable referencing

2005-12-06 Thread Michael Williams
I would RTM, but I'm not sure exactly what to look for. Basically, I need to be able to call a variable dynamically. Meaning something like the following: - I don't want to say OBJECT.VAR but rather OBJECT. ("string") and have it retrieve the var

e: Favorite flavor of Linux? (for python or anything else)

2005-12-05 Thread Michael Williams
I'd say Ubuntu.  It has one of the most intuitive package management systems, and manual installation of software seems to work very well.On Dec 5, 2005, at 2:00 AM, [EMAIL PROTECTED] wrote:From: "Mike C. Fletcher" <[EMAIL PROTECTED]> Date: December 5, 2005 12:56:13 AM EST To: python-list@python.or

Creating referenceable objects from XML

2005-12-04 Thread Michael Williams
Hi All, I'm looking for a quality Python XML implementation. All of the DOM and SAX implementations I've come across so far are rather convoluted. Are there any quality implementations that will (after parsing the XML) return an object that is accessible by name? Such as the following:

interactive prompts

2005-11-26 Thread Michael Williams
Hi all, I'm having an issue with environment variables and spawned commands. Specifically, I'm using "eval `ssh-agent`" and "ssh-add". My question is, how do I force the environmental variables set by one 'popen' or 'pexpect' to propagate throughout the entire Python session so that any

Trouble with "freeze.py" importing 3rd Party Modules

2005-11-13 Thread Michael Williams
Can anyone explain why "freeze.py" will make binaries with the std modules fine, however, when using 3rd party modules (Pexpect in particular) it requires the target system to actually have it installed? Thanks in advance, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: PID and/or handle assistance. . .?

2005-10-22 Thread Michael Williams
On Oct 22, 2005, at 1:16 PM, [EMAIL PROTECTED] wrote:Michael Williams wrote: Hi All, Can anyone explain how to both spawn processes from PYTHON and  acquire their process IDs or a handle to them for use later?  I'd  also like to acquire the stdout of each spawned process. Google dead today? Well,

PID and/or handle assistance. . .?

2005-10-22 Thread Michael Williams
Hi All, Can anyone explain how to both spawn processes from PYTHON and acquire their process IDs or a handle to them for use later? I'd also like to acquire the stdout of each spawned process. Regards, Mike -- http://mail.python.org/mailman/listinfo/python-list