Re: help with pyparsing

2007-12-10 Thread Prabhu Gurumurthy
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul McGuire wrote: > On Dec 9, 11:01 pm, Prabhu Gurumurthy <[EMAIL PROTECTED]> wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> All, >> >> I have the following lines that I would like to parse in python using >> pyparsing, but have som

Re: help with pyparsing

2007-12-09 Thread Paul McGuire
On Dec 9, 11:01 pm, Prabhu Gurumurthy <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > All, > > I have the following lines that I would like to parse in python using > pyparsing, but have some problems forming the grammar. > > Line in file: > table const { 207.135.1

Re: help with pyparsing

2007-12-09 Thread Chris
On Dec 10, 7:01 am, Prabhu Gurumurthy <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > All, > > I have the following lines that I would like to parse in python using > pyparsing, but have some problems forming the grammar. > > Line in file: > table const { 207.135.1

Re: Help with pyparsing and dealing with null values

2007-10-31 Thread avidfan
On Mon, 29 Oct 2007 05:45:26 -0700, Paul McGuire <[EMAIL PROTECTED]> wrote: >On Oct 29, 1:11 am, avidfan <[EMAIL PROTECTED]> wrote: >> Help with pyparsing and dealing with null values >> >> I am trying to parse a log file (web.out) similar to this: >> >> ---

Re: help with pyparsing

2007-10-31 Thread Paul McGuire
On Oct 31, 6:59 am, Neal Becker <[EMAIL PROTECTED]> wrote: > I'm just trying out pyparsing. I get stack overflow on my first try. Any > help? > > #/usr/bin/python > > from pyparsing import Word, alphas, QuotedString, OneOrMore, delimitedList > > first_line = '[' + delimitedList (QuotedString) + '

Re: Help with pyparsing and dealing with null values

2007-10-29 Thread Paul McGuire
On Oct 29, 1:11 am, avidfan <[EMAIL PROTECTED]> wrote: > Help with pyparsing and dealing with null values > > I am trying to parse a log file (web.out) similar to this: > > --- > > MBeanName: "mtg-model:Name=mtg-model_managed2,Type=Server" >

Re: Help With PyParsing of output from win32pdhutil.ShowAllProcesses()

2007-09-12 Thread Paul McGuire
On Sep 11, 1:12 pm, Steve <[EMAIL PROTECTED]> wrote: > Hi All (especially Paul McGuire!) > > Could you lend a hand in the grammar and paring of the output from the > function win32pdhutil.ShowAllProcesses()? > > This is the code that I have so far (it is very clumsy at the > moment) : > > > Many t

Re: Help With PyParsing of output from win32pdhutil.ShowAllProcesses()

2007-09-11 Thread Steve
Hi All, I did a lot of digging into the code in the module, win32pdhutil, and decided to create some custom methods. added to : import win32pdhutil def ShowAllProcessesAsList(): object = find_pdh_counter_localized_name("Process") items, instances = win32pdh.EnumObjectItems(None,None,

Re: Help With PyParsing of output from win32pdhutil.ShowAllProcesses()

2007-09-11 Thread David
On 9/11/07, Steve <[EMAIL PROTECTED]> wrote: > Hi All (especially Paul McGuire!) > > Could you lend a hand in the grammar and paring of the output from the > function win32pdhutil.ShowAllProcesses()? > > This is the code that I have so far (it is very clumsy at the > moment) : Any particular reaso