Re: Is subprocess.Popen completely broken?

2008-03-27 Thread Lee Capps
tion > OSError: [Errno 2] No such file or directory > > I also tried explicitly referencing /usr/bin/ls. Same result. > What gives? > I see this behavior in both Python 2.4 and 2.5 on Solaris 10 and with > 2.6alpha on Mac OS X. > Try proc = subprocess.Popen(('ls',

Re: Looking for library to estimate likeness of two strings

2008-02-07 Thread Lee Capps
e same way in both tables >(especially the given names). I would like some function that would >help me make the best guess. > >Many thanks in advance! I used difflib.get_close_matches for something similar: http://docs.python.org/lib/module-difflib.html HTH. -- Lee Capps Tech

Re:

2007-12-12 Thread Lee Capps
x in get_numbers(s)] See: http://docs.python.org/lib/module-re.html --- Lee Capps Technology Specialist CTE Resource Center [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax coloring in Python interpreter

2007-11-01 Thread Lee Capps
n can do this: http://ipython.scipy.org/moin/ --- Lee Capps Technology Specialist CTE Resource Center [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: capturing output of command line in an array

2007-10-31 Thread Lee Capps
node lines from gstat into the list? If so, os.popen should work for you. Or do you need to parse the lines and store them in, say dictionaries? Tuples? If you need to parse it, you could use module re, or even just string methods, depending on what you're trying to do . . . .